10Duke Enterprise C++ Client
|
#include <LibcurlHTTPClient.h>
LibCurl -based implementation of HTTPClient.
Very simple currently, does not support all variations.
Public Member Functions | |
LibCurlHTTPClient (std::string userAgent={}, long defaultConnectionTimeoutMs=DEFAULT_CONNECTION_TIMEOUT_MS, long defaultTimeoutMs=DEFAULT_TIMEOUT_MS, bool blindlyTrustSSLCertificates=false, bool verbose=false) | |
Constructs instance with LibCurlURLEncoder. | |
LibCurlHTTPClient (std::shared_ptr< const tenduke::net::URLEncoder > urlEncoder, std::string userAgent={}, long defaultConnectionTimeoutMs=DEFAULT_CONNECTION_TIMEOUT_MS, long defaultTimeoutMs=DEFAULT_TIMEOUT_MS, bool blindlyTrustSSLCertificates=false, bool verbose=false) | |
Constructs instance with given URLEncoder. | |
tenduke::http::HTTPRequestBuilder | request () const override |
Starts building request. | |
std::unique_ptr< tenduke::http::HTTPCall > | call (std::shared_ptr< const tenduke::http::HTTPRequest > request) const override |
Creates new HTTPCall from given HTTPRequest. | |
|
explicit |
Constructs instance with LibCurlURLEncoder.
userAgent | - |
defaultConnectionTimeoutMs | - |
defaultTimeoutMs | - |
blindlyTrustSSLCertificates | - |
verbose | - |
|
explicit |
Constructs instance with given URLEncoder.
urlEncoder | - |
userAgent | - |
defaultConnectionTimeoutMs | - |
defaultTimeoutMs | - |
blindlyTrustSSLCertificates | - |
verbose | - |
|
overridevirtual |
Creates new HTTPCall from given HTTPRequest.
request | - |
Implements tenduke::http::HTTPClient.
|
overridevirtual |
Starts building request.
Implements tenduke::http::HTTPClient.