![]() |
Skylicht Engine
|
Public Member Functions | |
| CHttpRequest (IHttpStream *stream) | |
| void | setSessionFile (const char *session) |
| void | sendRequestByPost () |
| void | sendRequestByPostJson () |
| void | sendRequestByGet () |
| void | sendRequestByPut () |
| void | sendRequestByDelete () |
| virtual void | sendRequest () |
| virtual bool | updateRequest () |
| bool | isSendRequest () |
| bool | checkTimeOut () |
| virtual bool | isTimeOut () |
| unsigned long | getRequestTime () |
| void | onRevcData (unsigned char *lpData, unsigned long size, unsigned long num) |
| void | onReadData (unsigned char *lpData, unsigned long size, unsigned long num) |
| virtual unsigned long | getSpeedDownload () |
| virtual void | cancel () |
| virtual bool | isCancel () |
| long | getCurrentTimeOut () |
| long | getTimeOut () |
| Public Member Functions inherited from Skylicht::Network::IHttpRequest | |
| IHttpRequest (IHttpStream *stream) | |
| void | addFormRequest (const char *name, const char *value) |
| void | addFormFileRequest (const char *name, const char *value) |
| void | setURL (const char *url) |
| const std::string & | getURL () |
| void | setSendRequestType (ERequestType type) |
| void | setUserData (void *data) |
| void * | getUserData () |
| void | clearHeader () |
| void | addHeader (const char *header) |
| int | getResponseCode () |
| IHttpStream * | getStream () |
| void | setRequestID (int id) |
| int | getRequestID () |
| unsigned long | getByteDownload () |
| unsigned long | getTotalByteDownload () |
| void | updateStatusDownload (unsigned long downLoad, unsigned long total) |
Static Public Member Functions | |
| static void | globalInit () |
| static void | globalFree () |
| static std::string | urlEncode (const std::string &s) |
| Static Public Member Functions inherited from Skylicht::Network::IHttpRequest | |
| static IHttpRequest * | create (IHttpStream *stream) |
| static std::string | escapeJson (const std::string &s) |
| static std::string | urlEncode (const std::string &s) |
Protected Attributes | |
| CURL * | m_curl |
| CURLM * | m_multiHandle |
| void * | m_formpost |
| void * | m_lastptr |
| int | m_needContinue |
| bool | m_sendRequest |
| bool | m_cancel |
| bool | m_isTimeOut |
| unsigned char * | m_downloadBuffer |
| unsigned long | m_sizeBuffer |
| unsigned long | m_requestTime |
| unsigned long | m_time |
| unsigned long | m_revcTime |
| unsigned long | m_currentTime |
| unsigned long | m_requestTimeOut |
| unsigned long | m_totalBytePerSecond |
| unsigned long | m_bytePerSecond |
| std::string | m_postField |
| std::string | m_sessionFile |
| curl_slist * | m_headerlist |
| bool | m_checkTimeout |
| Protected Attributes inherited from Skylicht::Network::IHttpRequest | |
| std::string | m_url |
| int | m_httpCode |
| int | m_requestID |
| ERequestType | m_requestType |
| IHttpStream * | m_dataStream |
| unsigned long | m_downloading |
| unsigned long | m_total |
| std::vector< SForm > | m_post |
| void * | m_userData |
| std::vector< std::string > | m_headers |
Additional Inherited Members | |
| Public Types inherited from Skylicht::Network::IHttpRequest | |
| enum | ERequestType { Get = 0 , Post , PostJson , Put , Delete } |
|
inlinevirtual |
Implements Skylicht::Network::IHttpRequest.
|
inlinevirtual |
Reimplemented from Skylicht::Network::IHttpRequest.
|
inlinevirtual |
Reimplemented from Skylicht::Network::IHttpRequest.
|
inlinevirtual |
Implements Skylicht::Network::IHttpRequest.
|
virtual |
Implements Skylicht::Network::IHttpRequest.
|
virtual |
Implements Skylicht::Network::IHttpRequest.