SNAP Library 2.4, Developer Reference
2015-05-11 19:40:56
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
Public Member Functions | |
THttpLx (const PSIn &_SIn) | |
THttpLx & | operator= (const THttpLx &) |
bool | Eof () |
int | Len () |
char | GetFirstCh () |
char | GetCh () |
void | GetRest () |
void | PutCh (const char &_Ch) |
void | ClrMemSf () |
TMem & | GetMemSf () |
THttpRqMethod | GetRqMethod () |
PUrl | GetUrl () |
TStr | GetUrlStr () |
bool | IsRespStatusLn () |
TStr | GetRespReasonPhrase () |
void | GetWs () |
bool | IsLws () |
void | GetLws () |
bool | IsCrLf () |
void | GetCrLf () |
void | GetPeriod () |
TStr | GetToken (const TStr &ExpectStr=TStr()) |
TStr | GetSpec (const TStr &ExpectStr=TStr()) |
int | GetInt (const int &RqPlaces=-1) |
TStr | GetFldVal () |
Static Public Member Functions | |
static TStr | GetNrStr (const TStr &Str) |
Private Attributes | |
PSIn | SIn |
TBoolChS | EofChPrS |
char | Ch |
bool | AtEof |
TMem | SfMem |
Static Private Attributes | |
static THttpChDef | ChDef |
|
inline |
Definition at line 189 of file http.cpp.
References GetFirstCh().
|
inline |
Definition at line 203 of file http.cpp.
References TMem::Clr(), and SfMem.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
|
inline |
Definition at line 196 of file http.cpp.
References AtEof.
Referenced by GetFldVal(), GetRespReasonPhrase(), GetRqMethod(), GetToken(), GetUrl(), GetUrlStr(), GetWs(), THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
char THttpLx::GetCh | ( | ) |
Definition at line 239 of file http.cpp.
References AtEof, Ch, TSStack< TVal >::Empty(), TSIn::Eof(), EofChPrS, TSIn::GetCh(), heUnexpectedEof, TCh::NullCh, TSStack< TVal >::Pop(), SfMem, SIn, TSStack< TVal >::Top(), TPair< TVal1, TVal2 >::Val1, and TPair< TVal1, TVal2 >::Val2.
Referenced by GetCrLf(), GetFldVal(), GetInt(), GetLws(), GetPeriod(), GetRespReasonPhrase(), GetRest(), GetRqMethod(), GetSpec(), GetToken(), GetUrl(), GetUrlStr(), GetWs(), IsCrLf(), IsLws(), and IsRespStatusLn().
void THttpLx::GetCrLf | ( | ) |
Definition at line 382 of file http.cpp.
References Ch, TCh::CrCh, GetCh(), heCrLfExpected, and TCh::LfCh.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
char THttpLx::GetFirstCh | ( | ) |
Definition at line 230 of file http.cpp.
References AtEof, Ch, TSIn::Eof(), TSIn::GetCh(), heUnexpectedEof, and SIn.
Referenced by THttpLx().
TStr THttpLx::GetFldVal | ( | ) |
Definition at line 433 of file http.cpp.
References Ch, ChDef, TCh::CrCh, Eof(), GetCh(), GetLws(), IsLws(), THttpChDef::IsText(), and TCh::LfCh.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
int THttpLx::GetInt | ( | const int & | RqPlaces = -1 | ) |
Definition at line 422 of file http.cpp.
References Ch, ChDef, GetCh(), GetLws(), heInvalidNumPlaces, heNumExpected, and THttpChDef::IsDigit().
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
void THttpLx::GetLws | ( | ) |
Definition at line 348 of file http.cpp.
References Ch, TCh::CrCh, forever, GetCh(), TCh::LfCh, PutCh(), and TCh::TabCh.
Referenced by GetFldVal(), GetInt(), GetRespReasonPhrase(), GetSpec(), and GetToken().
|
inline |
Definition at line 204 of file http.cpp.
References SfMem.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
Definition at line 226 of file http.cpp.
References ChDef, and THttpChDef::GetLcStr().
Referenced by THttpRq::AddFldVal(), THttpResp::AddFldVal(), THttpResp::AddHdFld(), THttpRq::GetFldVal(), THttpResp::GetFldVal(), THttpResp::GetFldValV(), GetToken(), THttpRq::IsFldNm(), THttpResp::IsFldNm(), THttpRq::IsFldVal(), THttpResp::IsFldVal(), THttpResp::ParseHttpResp(), THttpRq::ParseHttpRq(), and THttpRq::THttpRq().
void THttpLx::GetPeriod | ( | ) |
Definition at line 394 of file http.cpp.
References Ch, GetCh(), GetWs(), and hePeriodExpected.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
TStr THttpLx::GetRespReasonPhrase | ( | ) |
void THttpLx::GetRest | ( | ) |
Definition at line 254 of file http.cpp.
References Ch, TSStack< TVal >::Empty(), TSIn::Eof(), EofChPrS, GetCh(), TMem::LoadMem(), SfMem, and SIn.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
THttpRqMethod THttpLx::GetRqMethod | ( | ) |
Definition at line 261 of file http.cpp.
References Ch, ChDef, Eof(), GetCh(), heMethodNmExpected, hrmGet, hrmHead, hrmPost, hrmUndef, and THttpChDef::IsAlpha().
Referenced by THttpRq::ParseHttpRq().
Definition at line 413 of file http.cpp.
References Ch, ChDef, TStr::Empty(), GetCh(), GetLws(), heInvalidTSpec, heTSpecExpected, and THttpChDef::IsSpec().
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
Definition at line 400 of file http.cpp.
References Ch, ChDef, TChA::Empty(), TStr::Empty(), Eof(), GetCh(), GetLws(), GetNrStr(), heInvalidToken, heTokenExpected, THttpChDef::IsCtl(), and THttpChDef::IsSpec().
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
PUrl THttpLx::GetUrl | ( | ) |
Definition at line 273 of file http.cpp.
References Ch, ChDef, TChA::Empty(), Eof(), GetCh(), heBadUrl, heUrlEmpty, TUrl::IsOk(), and THttpChDef::IsSp().
TStr THttpLx::GetUrlStr | ( | ) |
Definition at line 286 of file http.cpp.
References Ch, ChDef, TChA::Empty(), Eof(), GetCh(), heUrlEmpty, and THttpChDef::IsSp().
Referenced by THttpRq::ParseHttpRq().
void THttpLx::GetWs | ( | ) |
Definition at line 323 of file http.cpp.
References Ch, Eof(), GetCh(), and TCh::TabCh.
Referenced by GetPeriod(), and THttpRq::ParseHttpRq().
bool THttpLx::IsCrLf | ( | ) |
Definition at line 371 of file http.cpp.
References Ch, TCh::CrCh, GetCh(), TCh::LfCh, and PutCh().
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
bool THttpLx::IsLws | ( | ) |
Definition at line 327 of file http.cpp.
References Ch, TCh::CrCh, GetCh(), TCh::LfCh, PutCh(), and TCh::TabCh.
Referenced by GetFldVal().
bool THttpLx::IsRespStatusLn | ( | ) |
Definition at line 295 of file http.cpp.
References Ch, ChDef, GetCh(), THttpChDef::GetLcCh(), THttpChDef::IsDigit(), Len(), TChA::Len(), PutCh(), and TChA::PutCh().
Referenced by THttpResp::ParseHttpResp().
|
inline |
Definition at line 197 of file http.cpp.
References EofChPrS, TSIn::Len(), TSStack< TVal >::Len(), and SIn.
Referenced by IsRespStatusLn().
|
inline |
Definition at line 201 of file http.cpp.
References AtEof, Ch, EofChPrS, TMem::Pop(), TSStack< TVal >::Push(), and SfMem.
Referenced by GetLws(), IsCrLf(), IsLws(), and IsRespStatusLn().
|
private |
|
private |
Definition at line 185 of file http.cpp.
Referenced by GetCh(), GetCrLf(), GetFirstCh(), GetFldVal(), GetInt(), GetLws(), GetPeriod(), GetRespReasonPhrase(), GetRest(), GetRqMethod(), GetSpec(), GetToken(), GetUrl(), GetUrlStr(), GetWs(), IsCrLf(), IsLws(), IsRespStatusLn(), and PutCh().
|
staticprivate |
Definition at line 181 of file http.cpp.
Referenced by GetFldVal(), GetInt(), GetNrStr(), GetRespReasonPhrase(), GetRqMethod(), GetSpec(), GetToken(), GetUrl(), GetUrlStr(), and IsRespStatusLn().
|
private |
|
private |
Definition at line 187 of file http.cpp.
Referenced by ClrMemSf(), GetCh(), GetMemSf(), GetRest(), and PutCh().
|
private |