|
| NPT_HttpClient (Connector *connector=NULL, bool transfer_ownership=true) |
|
NPT_Result | SendRequest (NPT_HttpRequest &request, NPT_HttpResponse *&response, NPT_HttpRequestContext *context=NULL) |
|
NPT_Result | Abort () |
|
const Config & | GetConfig () const |
|
NPT_Result | SetConfig (const Config &config) |
|
NPT_Result | SetProxy (const char *http_proxy_hostname, NPT_UInt16 http_proxy_port, const char *https_proxy_hostname=NULL, NPT_UInt16 https_proxy_port=0) |
|
NPT_Result | SetProxySelector (NPT_HttpProxySelector *selector) |
|
NPT_Result | SetConnector (Connector *connector) |
|
NPT_Result | SetTimeouts (NPT_Timeout connection_timeout, NPT_Timeout io_timeout, NPT_Timeout name_resolver_timeout) |
|
NPT_Result | SetUserAgent (const char *user_agent) |
|
NPT_Result | SetOptions (NPT_Flags options, bool on) |
|
◆ NPT_HttpClient()
NPT_HttpClient::NPT_HttpClient |
( |
Connector * |
connector = NULL , |
|
|
bool |
transfer_ownership = true |
|
) |
| |
- Parameters
-
connector | Pointer to a connector instance, or NULL to use the default (TCP) connector. |
transfer_ownership | Boolean flag. If true, the NPT_HttpClient object becomes the owner of the passed Connector and will delete it when it is itself deleted. If false, the caller keeps the ownership of the connector. This flag is ignored if the connector parameter is NULL. |
The documentation for this class was generated from the following files:
- lib/libUPnP/Neptune/Source/Core/NptHttp.h
- lib/libUPnP/Neptune/Source/Core/NptHttp.cpp