33#ifndef __XRDHTTPEXTHANDLER_H__
34#define __XRDHTTPEXTHANDLER_H__
55 std::map<std::string, std::string> &
headers;
74 int SendSimpleResp(
int code,
const char *desc,
const char *header_to_add,
const char *body,
long long bodylen);
94 virtual bool MatchesPath(
const char *verb,
const char *path) = 0;
102 virtual int Init(
const char *cfgfile) = 0;
146#define XrdHttpExtHandlerArgs XrdSysError *eDest, \
XrdHttpExtHandler * XrdHttpGetExtHandler(XrdHttpExtHandlerArgs)
#define XrdHttpExtHandlerArgs
Definition XrdHttpExtHandler.hh:146
Definition XrdHttpExtHandler.hh:88
virtual bool MatchesPath(const char *verb, const char *path)=0
Tells if the incoming path is recognized as one of the paths that have to be processed.
XrdHttpExtHandler()
Constructor.
Definition XrdHttpExtHandler.hh:108
virtual int ProcessReq(XrdHttpExtReq &)=0
virtual ~XrdHttpExtHandler()
Destructor.
Definition XrdHttpExtHandler.hh:114
virtual int Init(const char *cfgfile)=0
Initializes the external request handler.
Definition XrdHttpExtHandler.hh:47
std::string clientdn
Definition XrdHttpExtHandler.hh:57
std::string clienthost
Definition XrdHttpExtHandler.hh:57
int ChunkResp(const char *body, long long bodylen)
Send a (potentially partial) body in a chunked response; invoking with NULL body.
XrdHttpExtReq(XrdHttpReq *req, XrdHttpProtocol *pr)
void GetClientID(std::string &clid)
std::map< std::string, std::string > & headers
Definition XrdHttpExtHandler.hh:55
std::string clientgroups
Definition XrdHttpExtHandler.hh:57
std::string resource
Definition XrdHttpExtHandler.hh:54
int mSciTag
Definition XrdHttpExtHandler.hh:62
std::string verb
Definition XrdHttpExtHandler.hh:54
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.
long long length
Definition XrdHttpExtHandler.hh:58
XrdNetPMark * pmark
Definition XrdHttpExtHandler.hh:60
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....
const XrdSecEntity & GetSecEntity() const
XrdHttpProtocol * prot
Definition XrdHttpExtHandler.hh:49
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.
Definition XrdHttpProtocol.hh:79
Definition XrdHttpReq.hh:71
Definition XrdNetPMark.hh:39
Definition XrdOucEnv.hh:42
Definition XrdSecEntity.hh:65
Definition XrdSysError.hh:90