#include <weHTTP.h>

Public Member Functions | |
| WeHttpResponse () | |
| Default constructor. | |
| ~WeHttpResponse () | |
| Destructor. | |
| WeStringLinks & | Headers (void) |
| HTTP headers of the document. | |
| WeStringLinks & | Cookies (void) |
| HTTP cookies of the document. | |
| void | CurlSetOpts (WeHttpRequest *req=NULL) |
| Sets the options of CURL handle. | |
| const CURLcode & | GetLastError (void) const |
| Gets the CURLcode - the last cURL operation status. | |
| const char * | GetErrorMessage (void) const |
| Gets the human readable error message. | |
| bool | CurlInit (void) |
| Gets the human readable error message. | |
| void | Process (iweTransport *proc) |
| int | HttpCode (void) |
| HTTP response code for the document. | |
| void | HttpCode (int code) |
| HTTP response code for the document. | |
| CURL * | CURLHandle (void) |
| cURL transfer handle | |
Static Protected Member Functions | |
| static size_t | Receiver (void *ptr, size_t size, size_t nmemb, void *ourpointer) |
| Receives the document body. | |
| static size_t | HeadersRecv (void *ptr, size_t size, size_t nmemb, void *ourpointer) |
| Receives the document headers. | |
Just the HTTP response - code and header and unstructured data. To structure the response data use the WeDocument instead.
Definition at line 60 of file weHTTP.h.
| WeHttpResponse::WeHttpResponse | ( | ) |
Default constructor.
| WeError | if curl_easy_init failed |
Definition at line 32 of file weHttpResp.cpp.
| WeHttpResponse::~WeHttpResponse | ( | ) |
| WeStringLinks& WeHttpResponse::Cookies | ( | void | ) | [inline] |
| CURL* WeHttpResponse::CURLHandle | ( | void | ) | [inline] |
| bool WeHttpResponse::CurlInit | ( | void | ) |
Gets the human readable error message.
CURL initialize.
| true | if it succeeds, false if it fails. |
Definition at line 69 of file weHttpResp.cpp.
| void WeHttpResponse::CurlSetOpts | ( | WeHttpRequest * | req = NULL |
) |
Sets the options of CURL handle.
| req | - The WeHttpRequest, if not NULL - sets the request options, else sets only default options |
Definition at line 92 of file weHttpResp.cpp.
| const char* WeHttpResponse::GetErrorMessage | ( | void | ) | const [inline] |
| const CURLcode& WeHttpResponse::GetLastError | ( | void | ) | const [inline] |
| WeStringLinks& WeHttpResponse::Headers | ( | void | ) | [inline] |
| size_t WeHttpResponse::HeadersRecv | ( | void * | ptr, | |
| size_t | size, | |||
| size_t | nmemb, | |||
| void * | ourpointer | |||
| ) | [static, protected] |
Receives the document headers.
| ptr | - The pointer to received data. | |
| size | - The size of the data element. | |
| nmemb | - The number of the elements in the data. | |
| ourpointer | - The pointer to the WeHttpResponse object, that receives data. |
| amount | of processed data |
Definition at line 188 of file weHttpResp.cpp.
| void WeHttpResponse::HttpCode | ( | int | code | ) | [inline] |
| int WeHttpResponse::HttpCode | ( | void | ) | [inline] |
| void WeHttpResponse::Process | ( | iweTransport * | proc | ) | [virtual] |
lastError = curl_easy_getinfo(curlHandle, CURLINFO_REDIRECT_COUNT, &relocCount);
Implements iweResponse.
Definition at line 118 of file weHttpResp.cpp.
| size_t WeHttpResponse::Receiver | ( | void * | ptr, | |
| size_t | size, | |||
| size_t | nmemb, | |||
| void * | ourpointer | |||
| ) | [static, protected] |
Receives the document body.
| ptr | - The pointer to received data. | |
| size | - The size of the data element. | |
| nmemb | - The number of the elements in the data. | |
| ourpointer | - The pointer to the WeHttpResponse object, that receives data. |
| amount | of processed data |
Definition at line 164 of file weHttpResp.cpp.
![]() |
©2009 Positive Technologies |
Generated on Tue Jul 14 18:27:31 2009 for WebEngine by |
![]() |
1.5.7 |