6#ifndef _ZFI_ZFProtocolZFHttpRequest_h_
7#define _ZFI_ZFProtocolZFHttpRequest_h_
39 ZF_IN void *nativeTask
47 ZF_IN void *nativeTask
55 ZF_IN void *nativeTask
64 ZF_IN void *nativeTask
72 ZF_IN void *nativeTask
89 ZF_IN void *nativeTask
96 ZF_IN void *nativeTask
103 ZF_IN void *nativeTask
111 ZF_IN void *nativeTask
119 ZF_IN void *nativeTask
120 ,
ZF_IN const void *buffer
152 request->_ZFP_ZFHttpRequest_notifyResponse(response);
159 ZF_IN void *nativeTask
176 ZF_IN void *nativeTask
183 ZF_IN void *nativeTask
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
v_ZFHttpMethod::ZFEnumType ZFHttpMethod
see v_ZFHttpMethod
Definition ZFHttpRequest.h:35
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZFLIB_ZFNet
used to export symbols
Definition ZFNetDef.h:15
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
http request util
Definition ZFHttpRequest.h:121
see ZFHttpRequest
Definition ZFHttpRequest.h:43
virtual void url(void *nativeTask, const zfstring &url)=0
change the request url
virtual void requestCancel(void *nativeTask)=0
cancel the request
virtual zfstring responseHeaderIterValue(void *nativeTask, const zfiter &it)=0
response header access
virtual zfstring responseHeaderIterKey(void *nativeTask, const zfiter &it)=0
response header access
virtual zfindex responseHeaderCount(void *nativeTask)=0
response header access
virtual void header(void *nativeTask, const zfstring &key, const zfstring &value)=0
set http header
virtual void body(void *nativeTask, const void *buffer, zfindex byteSize)=0
append bytes to body
virtual void nativeTaskDestroy(void *nativeTask)=0
destroy native task
virtual void headerIterValue(void *nativeTask, zfiter &it, const zfstring &value)=0
http header access
void notifyResponse(ZFHttpRequest *request, ZFHttpResponse *response)
implementation must notify when receive response
Definition ZFProtocolZFHttpRequest.h:151
virtual zfiter responseHeaderIter(void *nativeTask)=0
response header access
virtual void headerRemove(void *nativeTask, const zfstring &key)=0
remove http header
virtual void headerIterRemove(void *nativeTask, zfiter &it)=0
http header access
virtual zfindex headerCount(void *nativeTask)=0
http header access
virtual zfstring header(void *nativeTask, const zfstring &key)=0
get http header
virtual zfstring responseHeader(void *nativeTask, const zfstring &key)=0
get response header
virtual void request(void *nativeTask, ZFHttpResponse *response)=0
start the http request, impl must notify notifyResponse even if fail or error
virtual zfstring headerIterKey(void *nativeTask, const zfiter &it)=0
http header access
virtual void * nativeTaskCreate(ZFHttpRequest *request)=0
create native task
virtual zfbool httpsAvailable(void)=0
whether https supported
virtual void httpMethod(void *nativeTask, ZFHttpMethod httpMethod)=0
set http method
virtual zfstring body(void *nativeTask)=0
return the current body contents
virtual zfiter headerIter(void *nativeTask)=0
http header access
virtual zfstring headerIterValue(void *nativeTask, const zfiter &it)=0
http header access
iterator for ZFFramework
Definition zfiter.h:40