xrootd
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Attributes | List of all members
XrdHttpExtReq Class Reference

#include <XrdHttpExtHandler.hh>

Collaboration diagram for XrdHttpExtReq:
Collaboration graph
[legend]

Public Member Functions

 XrdHttpExtReq (XrdHttpReq *req, XrdHttpProtocol *pr)
 
const XrdSecEntityGetSecEntity () const
 
int BuffgetData (int blen, char **data, bool wait)
 Get a pointer to data read from the client, valid for up to blen bytes from the buffer. Returns the validity. More...
 
int SendSimpleResp (int code, const char *desc, const char *header_to_add, const char *body, long long bodylen)
 Sends a basic response. If the length is < 0 then it is calculated internally. More...
 
int StartChunkedResp (int code, const char *desc, const char *header_to_add)
 Starts a chunked response; body of request is sent over multiple parts using the SendChunkResp. More...
 
int ChunkResp (const char *body, long long bodylen)
 Send a (potentially partial) body in a chunked response; invoking with NULL body. More...
 

Public Attributes

std::string verb
 
std::string resource
 
std::map< std::string,
std::string > & 
headers
 
std::string clientdn
 
std::string clienthost
 
std::string clientgroups
 
long long length
 

Private Attributes

XrdHttpProtocolprot
 

Constructor & Destructor Documentation

XrdHttpExtReq::XrdHttpExtReq ( XrdHttpReq req,
XrdHttpProtocol pr 
)

Member Function Documentation

int XrdHttpExtReq::BuffgetData ( int  blen,
char **  data,
bool  wait 
)

Get a pointer to data read from the client, valid for up to blen bytes from the buffer. Returns the validity.

int XrdHttpExtReq::ChunkResp ( const char *  body,
long long  bodylen 
)

Send a (potentially partial) body in a chunked response; invoking with NULL body.

const XrdSecEntity& XrdHttpExtReq::GetSecEntity ( ) const
int XrdHttpExtReq::SendSimpleResp ( int  code,
const char *  desc,
const char *  header_to_add,
const char *  body,
long long  bodylen 
)

Sends a basic response. If the length is < 0 then it is calculated internally.

int XrdHttpExtReq::StartChunkedResp ( int  code,
const char *  desc,
const char *  header_to_add 
)

Starts a chunked response; body of request is sent over multiple parts using the SendChunkResp.

Member Data Documentation

std::string XrdHttpExtReq::clientdn
std::string XrdHttpExtReq::clientgroups
std::string XrdHttpExtReq::clienthost
std::map<std::string, std::string>& XrdHttpExtReq::headers
long long XrdHttpExtReq::length
XrdHttpProtocol* XrdHttpExtReq::prot
private
std::string XrdHttpExtReq::resource
std::string XrdHttpExtReq::verb

The documentation for this class was generated from the following file: