#include <weHTTP.h>
Public Types | |
enum | weHttpMethod { wemGet, wemPost, wemPut, wemHead, wemTrace } |
enum | { composeOverwrite, composeAdd } |
Public Member Functions | |
WeHttpRequest () | |
Default constructor. | |
WeHttpRequest (string url, weHttpMethod meth=wemGet, WeHttpResponse *resp=NULL) | |
Constructs the object from the previous WeHttpResponse. | |
virtual WeURL & | RequestUrl (void) |
Access the ReqUrl property. | |
virtual void | RequestUrl (const string &ReqUrl, iweOperation *resp=NULL) |
Access the ReqUrl property. | |
virtual void | RequestUrl (const WeURL &ReqUrl, iweOperation *resp=NULL) |
Access the ReqUrl property. | |
void | ComposePost (int method=composeOverwrite) |
WeBlob & | Data () |
Unstructured data for the request. | |
WeStringLinks & | PostData () |
POST method structured data. | |
WeProxy * | Proxy (void) const |
void | Proxy (WeProxy *prx) |
const weHttpMethod & | Method (void) const |
Access the Method property. | |
void | Method (const weHttpMethod &meth) |
Access the Method property. |
Definition at line 142 of file weHTTP.h.
WeHttpRequest::WeHttpRequest | ( | ) |
WeHttpRequest::WeHttpRequest | ( | string | url, | |
WeHttpRequest::weHttpMethod | meth = wemGet , |
|||
WeHttpResponse * | resp = NULL | |||
) |
Constructs the object from the previous WeHttpResponse.
url | - The url. | |
meth | - The request method. Default - wemGet. | |
resp | - If non-null, the WeHttpResponse, to create chained WeHttpRequest to. |
WeError | if given URL is malformed and can't be reconstructed from the WeHttpResponse |
Definition at line 50 of file weHTTP.cpp.
void WeHttpRequest::ComposePost | ( | int | method = composeOverwrite |
) |
WeBlob& WeHttpRequest::Data | ( | void | ) | [inline] |
void WeHttpRequest::Method | ( | const weHttpMethod & | meth | ) | [inline] |
const weHttpMethod& WeHttpRequest::Method | ( | void | ) | const [inline] |
WeStringLinks& WeHttpRequest::PostData | ( | ) | [inline] |
void WeHttpRequest::RequestUrl | ( | const WeURL & | ReqUrl, | |
iweOperation * | resp = NULL | |||
) | [virtual] |
Access the ReqUrl property.
WeError | if given URL is malformed and can't be reconstructed from the WeHttpResponse |
Implements iweRequest.
Definition at line 66 of file weHTTP.cpp.
void WeHttpRequest::RequestUrl | ( | const string & | ReqUrl, | |
iweOperation * | resp = NULL | |||
) | [virtual] |
Access the ReqUrl property.
WeError | if given URL is malformed and can't be reconstructed from the WeHttpResponse |
Implements iweRequest.
Definition at line 58 of file weHTTP.cpp.
virtual WeURL& WeHttpRequest::RequestUrl | ( | void | ) | [inline, virtual] |
Access the ReqUrl property.
WeError | if given URL is malformed and can't be reconstructed from the WeHttpResponse |
Implements iweRequest.
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
|
1.5.7 |
|