SNAP Library, User Reference  2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
http.h File Reference

Go to the source code of this file.

Classes

class  THttp

Enumerations

enum  THttpRqMethod { hrmUndef, hrmGet, hrmHead, hrmPost }

Functions

void ParseSearch (const TStr &SearchStr)
void ParseHttpRq (const PSIn &SIn)
 THttpRq (const PSIn &SIn)
static PHttpRq New (const PSIn &SIn)
 THttpRq (const THttpRqMethod &_Method, const PUrl &_Url, const TStr &ContTypeFldVal, const TMem &_BodyMem, const int &FetchId=-1)
static PHttpRq New (const THttpRqMethod &Method, const PUrl &Url, const TStr &ContTypeFldVal, const TMem &BodyMem)
static PHttpRq New (const PUrl &Url, const int &FetchId=-1)
 ~THttpRq ()
 THttpRq (TSIn &)
static PHttpRq Load (TSIn &)
void Save (TSOut &)
THttpRq & operator= (const THttpRq &)
bool IsOk () const
bool IsComplete () const
THttpRqMethod GetMethod () const
const TStr & GetMethodNm () const
PUrl GetUrl () const
PUrlEnv GetUrlEnv () const
bool IsFldNm (const TStr &FldNm) const
TStr GetFldVal (const TStr &FldNm) const
bool IsFldVal (const TStr &FldNm, const TStr &FldVal) const
void AddFldVal (const TStr &FldNm, const TStr &FldVal)
const TStrStrH & GetFldValH () const
TStr GetHdStr () const
int GetBodyLen () const
TStr GetBodyAsStr () const
PSIn GetBodyAsSIn () const
void GetBodyAsMem (TMem &Mem) const
void GetAsMem (TMem &Mem) const
bool IsContType (const TStr &ContTypeStr) const
bool IsContLen (int &ContLen) const
TStr GetStr () const
void AddHdFld (const TStr &FldNm, const TStr &FldVal, TChA &HdChA)
void ParseHttpResp (const PSIn &SIn)
 THttpResp (const int &_StatusCd, const TStr &ContTypeVal, const bool &CacheCtrlP, const PSIn &BodySIn, const TStr LocStr)
static PHttpResp New (const int &StatusCd, const TStr &ContTypeVal, const bool &CacheCtrlP, const PSIn &BodySIn, const TStr LocStr=TStr())
 THttpResp (const PSIn &SIn)
 ~THttpResp ()
 THttpResp (TSIn &)
THttpResp & operator= (const THttpResp &)
int Len () const
bool IsContLenOk () const
const TMem & GetBodyAsMem () 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)
TStr GetFldVal (const TStr &FldNm, const int &ValN=0) const
void GetFldValV (const TStr &FldNm, TStrV &FldValV) const
bool IsStatusCd_Ok () const
bool IsStatusCd_Redir () const
bool IsContType () const
TStr GetSrvNm () const
void GetCookieKeyValDmPathQuV (TStrQuV &CookieKeyValDmPathQuV)
int GetTxtLen () const
static PHttpResp LoadTxt (PSIn &SIn)
void SaveTxt (const PSOut &SOut) const
void SaveBody (const PSOut &SOut) const
PSIn GetSIn () const

Variables

ClassTP(THttpRq, PHttpRq)
private bool 
CompleteP
int MajorVerN
int MinorVerN
THttpRqMethod Method
PUrl Url
TStrStrH FldNmToValH
PUrlEnv UrlEnv
TStr HdStr
TMem BodyMem
int StatusCd
TStr ReasonPhrase
TStrStrVH FldNmToValVH

Enumeration Type Documentation

Enumerator:
hrmUndef 
hrmGet 
hrmHead 
hrmPost 

Function Documentation

void AddFldVal ( const TStr &  FldNm,
const TStr &  FldVal 
)
void THttpResp::AddHdFld ( const TStr &  FldNm,
const TStr &  FldVal,
TChA &  HdChA 
)
void GetAsMem ( TMem &  Mem) const
void GetBodyAsMem ( TMem &  Mem) const
const TMem& GetBodyAsMem ( ) const
PSIn GetBodyAsSIn ( ) const
TStr GetBodyAsStr ( ) const
int GetBodyLen ( ) const
void THttpResp::GetCookieKeyValDmPathQuV ( TStrQuV &  CookieKeyValDmPathQuV)
void GetFldNmVal ( const int &  FldN,
TStr &  FldNm,
TStr &  FldVal 
)
void GetFldNmVal ( const int &  FldN,
const int &  ValN,
TStr &  FldNm,
TStr &  FldVal 
)
int GetFlds ( ) const
TStr GetFldVal ( const TStr &  FldNm) const
TStr GetFldVal ( const TStr &  FldNm,
const int &  ValN = 0 
) const
const TStrStrH & THttpRq::GetFldValH ( ) const
int GetFldVals ( const int &  FldN) const
void THttpResp::GetFldValV ( const TStr &  FldNm,
TStrV &  FldValV 
) const
TStr GetHdStr ( ) const
const TStr& GetMethodNm ( ) const
TStr GetReasonPhrase ( ) const
PSIn GetSIn ( ) const
TStr GetSrvNm ( ) const
int GetStatusCd ( ) const
TStr GetStr ( ) const
int GetTxtLen ( ) const
PUrl GetUrl ( ) const
PUrlEnv GetUrlEnv ( ) const
bool IsComplete ( ) const
bool IsContLen ( int &  ContLen) const
bool IsContLenOk ( ) const
bool IsContType ( const TStr &  ContTypeStr) const
bool IsContType ( ) const
bool IsFldNm ( const TStr &  FldNm) const
bool IsFldVal ( const TStr &  FldNm,
const TStr &  FldVal 
) const
bool IsOk ( ) const
bool IsStatusCd_Ok ( ) const
bool IsStatusCd_Redir ( ) const
int Len ( ) const
static PHttpResp Load ( TSIn &  ) [static]
static PHttpResp LoadTxt ( PSIn &  SIn) [static]
static PHttpResp New ( const PSIn &  SIn) [static]
static PHttpRq New ( const THttpRqMethod &  Method,
const PUrl &  Url,
const TStr &  ContTypeFldVal,
const TMem &  BodyMem 
) [static]
static PHttpRq New ( const PUrl &  Url,
const int &  FetchId = -1 
) [static]
static PHttpResp New ( const int &  StatusCd,
const TStr &  ContTypeVal,
const bool &  CacheCtrlP,
const PSIn &  BodySIn,
const TStr  LocStr = TStr() 
) [static]
THttpRq& operator= ( const THttpRq &  )
THttpResp& operator= ( const THttpResp &  )
void THttpResp::ParseHttpResp ( const PSIn &  SIn)
void THttpRq::ParseHttpRq ( const PSIn &  SIn)
void THttpRq::ParseSearch ( const TStr &  SearchStr)
void Save ( TSOut &  )
void SaveBody ( const PSOut &  SOut) const
void SaveTxt ( const PSOut &  SOut) const
THttpResp::THttpResp ( const int &  _StatusCd,
const TStr &  ContTypeVal,
const bool &  CacheCtrlP,
const PSIn &  BodySIn,
const TStr  LocStr 
)
THttpResp::THttpResp ( const PSIn &  SIn)
THttpResp ( TSIn &  )
THttpRq::THttpRq ( const PSIn &  SIn)
THttpRq::THttpRq ( const THttpRqMethod &  _Method,
const PUrl &  _Url,
const TStr &  ContTypeFldVal,
const TMem &  _BodyMem,
const int &  FetchId = -1 
)
THttpRq ( TSIn &  )
~THttpResp ( )
~THttpRq ( )

Variable Documentation

ClassTP (THttpRq, PHttpRq) private bool CompleteP
ClassTP (THttpResp, PHttpResp) private int MajorVerN
ClassTP (THttpResp, PHttpResp) private int MinorVerN
int StatusCd
PUrl Url
PUrlEnv UrlEnv