10Duke Enterprise C++ SDK
Loading...
Searching...
No Matches
tenduke::http::win::Win32HTTPClient Class Reference

#include <Win32HTTPClient.h>

Detailed Description

Win32 implementation of tenduke::http::HTTPClient.

Inheritance diagram for tenduke::http::win::Win32HTTPClient:
tenduke::http::HTTPClient

Public Member Functions

 Win32HTTPClient (const std::string &userAgent="10Duke-C++-client/win", long defaultConnectionTimeoutMs=::tenduke::http::DEFAULT_CONNECTION_TIMEOUT_MS, long defaultRequestTimeoutMs=::tenduke::http::DEFAULT_TIMEOUT_MS, std::size_t maxResponseBodySize=::tenduke::http::DEFAULT_MAX_RESPONSE_BODY_SIZE)
 Constructs new instance.
HTTPRequestBuilder request () const override
 Starts building request.
std::unique_ptr<::tenduke::http::HTTPCall > call (std::shared_ptr< const ::tenduke::http::HTTPRequest > request) const override
Public Member Functions inherited from tenduke::http::HTTPClient
virtual std::unique_ptr< tenduke::http::HTTPCall > call (std::shared_ptr< const tenduke::http::HTTPRequest > request) const =0
 Creates new HTTPCall from given HTTPRequest.

Constructor & Destructor Documentation

◆ Win32HTTPClient()

tenduke::http::win::Win32HTTPClient::Win32HTTPClient ( const std::string & userAgent = "10Duke-C++-client/win",
long defaultConnectionTimeoutMs = ::tenduke::http::DEFAULT_CONNECTION_TIMEOUT_MS,
long defaultRequestTimeoutMs = ::tenduke::http::DEFAULT_TIMEOUT_MS,
std::size_t maxResponseBodySize = ::tenduke::http::DEFAULT_MAX_RESPONSE_BODY_SIZE )
explicit

Constructs new instance.

Parameters
userAgent-
defaultConnectionTimeoutMsconnection timeout, 0 for no timeout
defaultRequestTimeoutMstotal timeout of a request, 0 for no timeout
maxResponseBodySizemaximum size of a response body in bytes, a larger response is aborted

Member Function Documentation

◆ request()

HTTPRequestBuilder tenduke::http::win::Win32HTTPClient::request ( ) const
overridevirtual

Starts building request.

Implements tenduke::http::HTTPClient.


The documentation for this class was generated from the following files:
  • core/services/windows/src/http/Win32HTTPClient.h
  • core/services/windows/src/http/Win32HTTPClient.cpp