![]() |
XRootD
|
#include <XrdHttpExtHandler.hh>
Public Member Functions | |
XrdHttpExtReq (XrdHttpReq *req, XrdHttpProtocol *pr) | |
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 | ChunkResp (const char *body, long long bodylen) |
Send a (potentially partial) body in a chunked response; invoking with NULL body. More... | |
void | GetClientID (std::string &clid) |
const XrdSecEntity & | GetSecEntity () const |
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... | |
Public Attributes | |
std::string | clientdn |
std::string | clientgroups |
std::string | clienthost |
std::map< std::string, std::string > & | headers |
long long | length |
int | mSciTag |
XrdNetPMark * | pmark |
std::string | resource |
bool | tpcForwardCreds = false |
std::string | verb |
Definition at line 47 of file XrdHttpExtHandler.hh.
XrdHttpExtReq::XrdHttpExtReq | ( | XrdHttpReq * | req, |
XrdHttpProtocol * | pr | ||
) |
Definition at line 86 of file XrdHttpExtHandler.cc.
References XrdOucString::c_str(), clientdn, clientgroups, clienthost, XrdOucEnv::Env(), headers, XrdSecEntity::host, XrdHttpProtocol::isHTTPS(), length, XrdHttpReq::length, XrdSecEntity::moninfo, mSciTag, XrdHttpReq::mScitag, XrdHttpReq::opaque, pmark, XrdHttpProtocol::pmarkHandle, resource, XrdHttpReq::resource, XrdHttpReq::resourceplusopaque, XrdHttpProtocol::SecEntity, tpcForwardCreds, XrdHttpProtocol::tpcForwardCreds, trim(), and XrdSecEntity::vorg.
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.
Definition at line 65 of file XrdHttpExtHandler.cc.
Referenced by Macaroons::Handler::ProcessReq().
int XrdHttpExtReq::ChunkResp | ( | const char * | body, |
long long | bodylen | ||
) |
Send a (potentially partial) body in a chunked response; invoking with NULL body.
Definition at line 58 of file XrdHttpExtHandler.cc.
void XrdHttpExtReq::GetClientID | ( | std::string & | clid | ) |
Definition at line 73 of file XrdHttpExtHandler.cc.
References XrdLink::Client(), and XrdHttpProtocol::Link.
const XrdSecEntity & XrdHttpExtReq::GetSecEntity | ( | ) | const |
Definition at line 80 of file XrdHttpExtHandler.cc.
References XrdHttpProtocol::SecEntity.
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.
Definition at line 31 of file XrdHttpExtHandler.cc.
Referenced by TPC::TPCHandler::ProcessReq(), and Macaroons::Handler::ProcessReq().
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.
Definition at line 51 of file XrdHttpExtHandler.cc.
std::string XrdHttpExtReq::clientdn |
Definition at line 57 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
std::string XrdHttpExtReq::clientgroups |
Definition at line 57 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
std::string XrdHttpExtReq::clienthost |
Definition at line 57 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
std::map<std::string, std::string>& XrdHttpExtReq::headers |
Definition at line 55 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq(), TPC::State::CopyHeaders(), TPC::TPCHandler::ProcessReq(), and Macaroons::Handler::ProcessReq().
long long XrdHttpExtReq::length |
Definition at line 58 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
int XrdHttpExtReq::mSciTag |
Definition at line 64 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq(), XrdTpc::PMarkManager::beginPMarks(), and XrdTpc::PMarkManager::isEnabled().
XrdNetPMark* XrdHttpExtReq::pmark |
Definition at line 60 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
std::string XrdHttpExtReq::resource |
Definition at line 54 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq(), XrdTpc::PMarkManager::beginPMarks(), and Macaroons::Handler::ProcessReq().
bool XrdHttpExtReq::tpcForwardCreds = false |
Definition at line 62 of file XrdHttpExtHandler.hh.
Referenced by XrdHttpExtReq().
std::string XrdHttpExtReq::verb |
Definition at line 54 of file XrdHttpExtHandler.hh.
Referenced by TPC::TPCHandler::ProcessReq().