SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
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().
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 Ch, TSStack< TVal >::Empty(), TSIn::Eof(), TSIn::GetCh(), heUnexpectedEof, TCh::NullCh, TSStack< TVal >::Pop(), 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 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 Ch, TSIn::Eof(), TSIn::GetCh(), and heUnexpectedEof.
Referenced by THttpLx().
TStr THttpLx::GetFldVal | ( | ) |
Definition at line 433 of file http.cpp.
References Ch, 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 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 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 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 GetCh(), GetWs(), and hePeriodExpected.
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
TStr THttpLx::GetRespReasonPhrase | ( | ) |
Definition at line 315 of file http.cpp.
References Ch, TCh::CrCh, Eof(), GetCh(), GetLws(), THttpChDef::IsText(), and TCh::LfCh.
Referenced by THttpResp::ParseHttpResp().
void THttpLx::GetRest | ( | ) |
Definition at line 254 of file http.cpp.
References Ch, TSStack< TVal >::Empty(), TSIn::Eof(), GetCh(), and TMem::LoadMem().
Referenced by THttpResp::ParseHttpResp(), and THttpRq::ParseHttpRq().
THttpRqMethod THttpLx::GetRqMethod | ( | ) |
Definition at line 261 of file http.cpp.
References Ch, Eof(), GetCh(), heMethodNmExpected, hrmGet, hrmHead, hrmPost, hrmUndef, and THttpChDef::IsAlpha().
Referenced by THttpRq::ParseHttpRq().
Definition at line 413 of file http.cpp.
References 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, 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, TChA::Empty(), Eof(), GetCh(), heBadUrl, heUrlEmpty, TUrl::IsOk(), and THttpChDef::IsSp().
TStr THttpLx::GetUrlStr | ( | ) |
Definition at line 286 of file http.cpp.
References Ch, TChA::Empty(), Eof(), GetCh(), heUrlEmpty, and THttpChDef::IsSp().
Referenced by THttpRq::ParseHttpRq().
void THttpLx::GetWs | ( | ) |
Definition at line 323 of file http.cpp.
References Eof(), GetCh(), and TCh::TabCh.
Referenced by GetPeriod(), and THttpRq::ParseHttpRq().
bool THttpLx::IsCrLf | ( | ) |
Definition at line 371 of file http.cpp.
References 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 TCh::CrCh, GetCh(), TCh::LfCh, PutCh(), and TCh::TabCh.
Referenced by GetFldVal().
bool THttpLx::IsRespStatusLn | ( | ) |
Definition at line 295 of file http.cpp.
References 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 TSIn::Len(), and TSStack< TVal >::Len().
Referenced by IsRespStatusLn().
|
inline |
Definition at line 201 of file http.cpp.
References TMem::Pop(), and TSStack< TVal >::Push().
Referenced by GetLws(), IsCrLf(), IsLws(), and IsRespStatusLn().
|
private |
Definition at line 185 of file http.cpp.
Referenced by GetCh(), GetFirstCh(), GetFldVal(), GetRespReasonPhrase(), GetRest(), GetRqMethod(), GetToken(), GetUrl(), and GetUrlStr().
|
staticprivate |
|
private |
Definition at line 187 of file http.cpp.
Referenced by GetMemSf().