|
10Duke Enterprise C++ SDK
|
#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 verbose=false, std::size_t maxResponseBodySize=DEFAULT_MAX_RESPONSE_BODY_SIZE) | |
| Constructs instance with LibCurlURLEncoder. | |
| 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 | connection timeout, 0 for the libcurl default (300 seconds) |
| defaultTimeoutMs | total timeout of a request, 0 for no timeout |
| verbose | - |
| maxResponseBodySize | maximum size of a response body in bytes, a larger response is aborted |
|
overridevirtual |
Creates new HTTPCall from given HTTPRequest.
| request | - |
Implements tenduke::http::HTTPClient.
|
overridevirtual |
Starts building request.
Implements tenduke::http::HTTPClient.