xrootd
Loading...
Searching...
No Matches
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)
 
void GetClientID (std::string &clid)
 
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.
 
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.
 
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.
 
int ChunkResp (const char *body, long long bodylen)
 Send a (potentially partial) body in a chunked response; invoking with NULL body.
 

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
 
XrdNetPMarkpmark
 
int mSciTag
 

Private Attributes

XrdHttpProtocolprot
 

Constructor & Destructor Documentation

◆ XrdHttpExtReq()

XrdHttpExtReq::XrdHttpExtReq ( XrdHttpReq req,
XrdHttpProtocol pr 
)

Member Function Documentation

◆ BuffgetData()

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.

◆ ChunkResp()

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

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

◆ GetClientID()

void XrdHttpExtReq::GetClientID ( std::string &  clid)

◆ GetSecEntity()

const XrdSecEntity & XrdHttpExtReq::GetSecEntity ( ) const

◆ SendSimpleResp()

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.

◆ StartChunkedResp()

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

◆ clientdn

std::string XrdHttpExtReq::clientdn

◆ clientgroups

std::string XrdHttpExtReq::clientgroups

◆ clienthost

std::string XrdHttpExtReq::clienthost

◆ headers

std::map<std::string, std::string>& XrdHttpExtReq::headers

◆ length

long long XrdHttpExtReq::length

◆ mSciTag

int XrdHttpExtReq::mSciTag

◆ pmark

XrdNetPMark* XrdHttpExtReq::pmark

◆ prot

XrdHttpProtocol* XrdHttpExtReq::prot
private

◆ resource

std::string XrdHttpExtReq::resource

◆ verb

std::string XrdHttpExtReq::verb

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