4 #ifndef ROOT_THttpCallArg
5 #define ROOT_THttpCallArg
15 #include <condition_variable>
void SetZipping(Int_t kind)
Bool_t IsContentType(const char *typ) const
void SetRequestHeader(const char *h)
const char * GetTopName() const
void SetPathName(const char *p)
Long_t GetContentLength() const
static const char * filename()
TString fQuery
authenticated user name (if any)
const char * GetPathName() const
void SetQuery(const char *q)
void * fBinData
indicate if content should be zipped
void SetContentType(const char *typ)
const void * GetContent() const
void SetUserName(const char *n)
TString GetRequestHeaderName(Int_t number) const
void SetContent(const char *c)
const char * GetMethod() const
void SetTopName(const char *topname)
const char * Data() const
#define ClassDef(name, id)
void SetEncoding(const char *typ)
void SetPostData(void *data, Long_t length)
set data, posted with the request buffer should be allocated with malloc(length+1) call...
void SetPathAndFileName(const char *fullpath)
set complete path of requested http element For instance, it could be "/folder/subfolder/get.bin" Here "/folder/subfolder/" is element path and "get.bin" requested file.
TString fContentType
condition used to wait for processing
TString fPathName
request method like GET or POST
Int_t Atoi() const
Return integer value of string.
void * GetPostData() const
const char * GetQuery() const
TString fRequestHeader
type of content
Long_t fPostDataLength
binary data received with post request
Long_t fBinDataLength
binary data, assigned with http call
void SetBinData(void *data, Long_t length)
set binary data, which will be returned as reply body
Double_t length(const TVector2 &v)
void SetExtraHeader(const char *name, const char *value)
const char * GetFileName() const
TString AccessHeader(TString &buf, const char *name, const char *value=0, Bool_t doing_set=kFALSE)
method used to get or set http header in the string buffer Header has following format: field1 : valu...
TString GetHeaderName(Int_t number) const
Bool_t IsPostMethod() const
void * fPostData
additional arguments
const char * GetUserName() const
void SetFileName(const char *f)
TString fUserName
file name
std::condition_variable fCond
length of binary data
Int_t fZipping
text content (if any)
void SetMethod(const char *method)
TString CountHeader(const TString &buf, Int_t number=-1111) const
method used to counter number of headers or returns name of specified header
TString fHeader
complete header, provided with request
Int_t NumRequestHeader() const
Mother of all ROOT objects.
TString fContent
response header like ContentEncoding, Cache-Control and so on
void AddHeader(const char *name, const char *value)
Set name: value pair to reply header Content-Type field handled separately - one should use SetConten...
TString fMethod
top item name
void SetFile(const char *filename=0)
Long_t GetPostDataLength() const
Bool_t IsBinData() const
length of binary data
TString GetRequestHeader(const char *name)
~THttpCallArg()
destructor
TString fFileName
item path
int CompareTo(const char *cs, ECaseCompare cmp=kExact) const
Compare a string to char *cs2.
Bool_t CompressWithGzip()
compress reply data with gzip compression
TString GetHeader(const char *name)
return specified header
void FillHttpHeader(TString &buf, const char *header=0)
fill HTTP header
const char * GetContentType() const