SNAP Library 3.0, User Reference
2016-07-20 17:56:49
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <http.h>
Public Member Functions | |
THttpResp (const int &_StatusCd, const TStr &ContTypeVal, const bool &CacheCtrlP, const PSIn &BodySIn, const TStr LocStr) | |
THttpResp (const PSIn &SIn) | |
~THttpResp () | |
THttpResp (TSIn &) | |
void | Save (TSOut &) |
THttpResp & | operator= (const THttpResp &) |
bool | IsOk () const |
int | Len () const |
bool | IsContLenOk () const |
void | GetAsMem (TMem &Mem) const |
TStr | GetHdStr () const |
const TMem & | GetBodyAsMem () const |
TStr | GetBodyAsStr () const |
PSIn | GetBodyAsSIn () const |
int | GetStatusCd () const |
TStr | GetReasonPhrase () const |
int | GetFlds () const |
int | GetFldVals (const int &FldN) const |
void | GetFldNmVal (const int &FldN, TStr &FldNm, TStr &FldVal) |
void | GetFldNmVal (const int &FldN, const int &ValN, TStr &FldNm, TStr &FldVal) |
bool | IsFldNm (const TStr &FldNm) const |
TStr | GetFldVal (const TStr &FldNm, const int &ValN=0) const |
void | GetFldValV (const TStr &FldNm, TStrV &FldValV) const |
bool | IsFldVal (const TStr &FldNm, const TStr &FldVal) const |
void | AddFldVal (const TStr &FldNm, const TStr &FldVal) |
bool | IsStatusCd_Ok () const |
bool | IsStatusCd_Redir () const |
bool | IsContType () const |
bool | IsContType (const TStr &ContTypeStr) const |
bool | IsContLen (int &ContLen) const |
TStr | GetSrvNm () const |
void | GetCookieKeyValDmPathQuV (TStrQuV &CookieKeyValDmPathQuV) |
int | GetTxtLen () const |
void | SaveTxt (const PSOut &SOut) const |
void | SaveBody (const PSOut &SOut) const |
PSIn | GetSIn () const |
Static Public Member Functions | |
static PHttpResp | New (const int &StatusCd, const TStr &ContTypeVal, const bool &CacheCtrlP, const PSIn &BodySIn, const TStr LocStr=TStr()) |
static PHttpResp | New (const PSIn &SIn) |
static PHttpResp | Load (TSIn &) |
static PHttpResp | LoadTxt (PSIn &SIn) |
Private Member Functions | |
void | AddHdFld (const TStr &FldNm, const TStr &FldVal, TChA &HdChA) |
void | ParseHttpResp (const PSIn &SIn) |
Private Attributes | |
TCRef | CRef |
bool | Ok |
int | MajorVerN |
int | MinorVerN |
int | StatusCd |
TStr | ReasonPhrase |
TStrStrVH | FldNmToValVH |
TStr | HdStr |
TMem | BodyMem |
Friends | |
class | TPt< THttpResp > |
THttpResp::THttpResp | ( | const int & | _StatusCd, |
const TStr & | ContTypeVal, | ||
const bool & | CacheCtrlP, | ||
const PSIn & | BodySIn, | ||
const TStr | LocStr | ||
) |
Definition at line 740 of file http.cpp.
THttpResp::THttpResp | ( | const PSIn & | SIn | ) |
Definition at line 777 of file http.cpp.
|
inline |
void THttpResp::GetCookieKeyValDmPathQuV | ( | TStrQuV & | CookieKeyValDmPathQuV | ) |
Definition at line 825 of file http.cpp.
|
inline |
|
inline |
Definition at line 198 of file http.h.
|
inline |
Definition at line 196 of file http.h.
|
inline |
Definition at line 194 of file http.h.
Definition at line 809 of file http.cpp.
Definition at line 203 of file http.h.
|
inlinestatic |
Definition at line 148 of file http.h.
Definition at line 153 of file http.h.
|
private |
Definition at line 699 of file http.cpp.
|
inline |