ZFFramework
 
Loading...
Searching...
No Matches
ZFHttpRequest.h File Reference

http operation More...

#include "ZFNetDef.h"

Go to the source code of this file.

Classes

class  v_ZFHttpMethod
 http method type More...
 
class  ZFHttpResponse
 see ZFHttpRequest More...
 
class  ZFHttpRequest
 http request util More...
 

Typedefs

typedef v_ZFHttpMethod::ZFEnumType ZFHttpMethod
 see v_ZFHttpMethod
 

Functions

zfbool ZFHttpMethodFromStringT (zfauto &ret, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 see v_ZFHttpMethod, return enum object if success
 
zfbool ZFHttpMethodToStringT (zfstring &ret, v_ZFHttpMethod *const &value, zfstring *errorHint=zft_zfnull)
 see ZFHttpMethod, return empty string if error
 
zfstring ZFHttpMethodToString (v_ZFHttpMethod *const &value, zfstring *errorHint=zft_zfnull)
 see v_ZFHttpMethod, return empty string if error
 
const zfstringZFTypeId_ZFHttpMethod (void)
 
zfbool ZFHttpMethodFromDataT (_ZFP_PropTypeW_ZFHttpMethod &v, const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
_ZFP_PropTypeW_ZFHttpMethod ZFHttpMethodFromData (const ZFSerializableData &serializableData, zfstring *outErrorHint=zft_zfnull, ZFSerializableData *outErrorPos=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFHttpMethodToDataT (ZFSerializableData &serializableData, _ZFP_PropTypeW_ZFHttpMethod const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
ZFSerializableData ZFHttpMethodToData (_ZFP_PropTypeW_ZFHttpMethod const &v, zfstring *outErrorHint=zft_zfnull)
 see ZFTYPEID_DECLARE
 
zfbool ZFHttpMethodFromStringT (_ZFP_PropTypeW_ZFHttpMethod &v, const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFHttpMethod from string
 
_ZFP_PropTypeW_ZFHttpMethod ZFHttpMethodFromString (const zfchar *src, zfindex srcLen=((zfindex) -1), zfstring *errorHint=zft_zfnull)
 util method to convert ZFHttpMethod from string
 
zfbool ZFHttpMethodToStringT (zfstring &s, _ZFP_PropTypeW_ZFHttpMethod const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFHttpMethod to string
 
zfstring ZFHttpMethodToString (_ZFP_PropTypeW_ZFHttpMethod const &v, zfstring *errorHint=zft_zfnull)
 util method to convert ZFHttpMethod to string
 
zfstring ZFUrlEncode (const zfchar *src)
 url encode util
 
void ZFUrlEncodeT (zfstring &ret, const zfchar *src)
 url encode util
 
zfstring ZFUrlDecode (const zfchar *src)
 url decode util
 
void ZFUrlDecodeT (zfstring &ret, const zfchar *src)
 url decode util
 
zfstring ZFUrlForParam (const zfchar *url, const ZFJson &params)
 util to generate url
 
void ZFUrlParamSet (zfstring &url, const ZFJson &params)
 util to modify url
 
void ZFUrlParamSet (zfstring &url, const zfchar *key, const zfchar *value)
 util to modify url
 
zfstring ZFUrlParamGet (const zfchar *url, const zfchar *key, const zfchar *def=(zft_zfnull))
 util to get param from url
 
zfautoT< ZFHttpResponseZFHttpHeadCache (const zfstring &url)
 util to fetch head info, or load from cache if available
 
zfautoT< ZFHttpResponseZFHttpHeadCacheRemove (const zfstring &url)
 see ZFHttpHeadCache
 
void ZFHttpHeadCacheRemoveAll ()
 see ZFHttpHeadCache
 

Detailed Description

http operation

Function Documentation

◆ ZFTypeId_ZFHttpMethod()

const zfstring & ZFTypeId_ZFHttpMethod ( void )
inline


◆ ZFHttpHeadCache()

zfautoT< ZFHttpResponse > ZFHttpHeadCache ( const zfstring & url)
extern

util to fetch head info, or load from cache if available

use ZFHttpHeadCacheRemoveAll if necessary