71 int MajorVerN, MinorVerN;
78 void ParseSearch(const
TStr& SearchStr);
79 void ParseHttpRq(const
PSIn& SIn);
86 const TStr& ContTypeFldVal,
const TMem& _BodyMem,
const int& FetchId=-1);
89 const TStr& ContTypeFldVal,
const TMem& BodyMem){
90 return PHttpRq(
new THttpRq(Method, Url, ContTypeFldVal, BodyMem));}
104 const TStr& GetMethodNm()
const;
107 bool IsFldNm(
const TStr& FldNm)
const;
108 TStr GetFldVal(
const TStr& FldNm)
const;
109 bool IsFldVal(
const TStr& FldNm,
const TStr& FldVal)
const;
110 void AddFldVal(
const TStr& FldNm,
const TStr& FldVal);
115 bool IsBody()
const {
return !BodyMem.Empty(); }
137 int MajorVerN, MinorVerN;
143 void AddHdFld(const
TStr& FldNm, const
TStr& FldVal,
TChA& HdChA);
144 void ParseHttpResp(const
PSIn& SIn);
147 const
bool& CacheCtrlP, const
PSIn& BodySIn, const
TStr LocStr);
149 const
bool& CacheCtrlP, const
PSIn& BodySIn, const
TStr LocStr=
TStr()){
151 THttpResp(StatusCd, ContTypeVal, CacheCtrlP, BodySIn, LocStr));}
163 int Len()
const {
return HdStr.Len()+BodyMem.Len();}
165 return IsOk()&&IsContLen(ContLen)&&(ContLen==BodyMem.Len());}
167 Mem.
Clr(); Mem+=HdStr; Mem+=BodyMem;}
174 int GetFlds()
const {
return FldNmToValVH.Len();}
176 return FldNmToValVH[FldN].Len();}
178 FldNm=FldNmToValVH.GetKey(FldN); FldVal=FldNmToValVH[FldN][0];}
180 FldNm=FldNmToValVH.GetKey(FldN); FldVal=FldNmToValVH[FldN][ValN];}
181 bool IsFldNm(
const TStr& FldNm)
const;
182 TStr GetFldVal(
const TStr& FldNm,
const int& ValN=0)
const;
183 void GetFldValV(
const TStr& FldNm,
TStrV& FldValV)
const;
184 bool IsFldVal(
const TStr& FldNm,
const TStr& FldVal)
const;
185 void AddFldVal(
const TStr& FldNm,
const TStr& FldVal);
200 void GetCookieKeyValDmPathQuV(
TStrQuV& CookieKeyValDmPathQuV);
202 int GetTxtLen()
const {
return HdStr.Len()+BodyMem.Len();}
206 HdStr.SaveTxt(SOut); BodyMem.SaveMem(SOut);}
208 BodyMem.SaveMem(SOut);}
static const TStr ContTypeFldNm
const TMem & GetBodyAsMem() const
static const TStr ImageIcoFldVal
void GetAsMem(TMem &Mem) const
static PHttpRq New(const PUrl &Url, const int &FetchId=-1)
static const int BadRqStatusCd
bool IsContType(const TStr &ContTypeStr) const
THttpRqMethod GetMethod() const
static const TStr GetMethodNm
static PSIn New(const TMem &Mem)
void GetAsMem(TMem &Mem) const
static const TStr HttpStr
static const TStr HostFldNm
static const int RedirStatusCd
static PHttpResp Load(TSIn &)
TStr GetReasonPhrase() const
void SaveTxt(const PSOut &SOut) const
PSIn GetBodyAsSIn() const
static const TStr AcceptRangesFldNm
static const TStr ConnFldNm
static const TStr TextCssFldVal
static TStr GetReasonPhrase(const int &StatusCd)
static const TStr AcceptFldNm
static const int ErrStatusCd
static bool IsHtmlFExt(const TStr &FExt)
static PHttpResp New(const PSIn &SIn)
static bool IsGifFExt(const TStr &FExt)
static const TStr TextPlainFldVal
static const TStr CookieFldNm
#define ClassTP(TNm, PNm)
bool IsStatusCd_Redir() const
static const TStr HeadMethodNm
static const TStr PostMethodNm
static const TStr ColonStr
bool IsContLen(int &ContLen) const
static const TStr ImageGifFldVal
TStr GetBodyAsStr() const
static const TStr AppOctetFldVal
static const int ErrNotFoundStatusCd
THttpResp & operator=(const THttpResp &)
static const TStr UndefMethodNm
static PHttpResp LoadTxt(PSIn &SIn)
static const TStr CacheCtrlFldNm
static const TStr LocFldNm
TStr GetBodyAsStr() const
static const TStr TextHtmlFldVal
bool IsStatusCd_Ok() const
bool IsContType(const TStr &ContTypeStr) const
int GetFldVals(const int &FldN) const
PSIn GetBodyAsSIn() const
static const TStr AppJSonFldVal
static const int OkStatusCd
static PHttpRq Load(TSIn &)
static const TStr ContLenFldNm
static const TStr SlashStr
bool IsContLen(int &ContLen) const
static const TStr TextJavaScriptFldVal
void GetBodyAsMem(TMem &Mem) const
static const TStr TextWmlFldVal
static const TStr TextXmlFldVal
static const TStr ConnKeepAliveFldVal
void GetFldNmVal(const int &FldN, const int &ValN, TStr &FldNm, TStr &FldVal)
static PHttpRq New(const THttpRqMethod &Method, const PUrl &Url, const TStr &ContTypeFldVal, const TMem &BodyMem)
static const int InternalErrStatusCd
static const TStr TextFldVal
static const TStr FetchIdFldNm
TPt< THttpResp > PHttpResp
static const TStr AppW3FormFldVal
static const TStr ImagePngFldVal
void SaveBody(const PSOut &SOut) const
THttpRq & operator=(const THttpRq &)
static const TStr SrvFldNm
void GetFldNmVal(const int &FldN, TStr &FldNm, TStr &FldVal)
static const TStr ImageJpgFldVal
PUrlEnv GetUrlEnv() const
static const TStr AppSoapXmlFldVal
Vector is a sequence TVal objects representing an array that can change in size.
void Clr(const bool &DoDel=true)
static const TStr SetCookieFldNm