10Duke Scale C++ Client
Loading...
Searching...
No Matches
tenduke::http::HTTPClient Class Referenceabstract

#include <HTTPClient.h>

Detailed Description

A simple HTTP-client.

The client is used to build HTTPRequest and then create new call from the request.

Inheritance diagram for tenduke::http::HTTPClient:
tenduke::http::curl::LibCurlHTTPClient tenduke::test::fakes::HTTPClientFake tenduke::test::mocks::HTTPClientMock

Public Member Functions

virtual tenduke::http::HTTPRequestBuilder request () const =0
 Starts building request.
 
virtual std::unique_ptr< tenduke::http::HTTPCallcall (std::shared_ptr< const tenduke::http::HTTPRequest > request) const =0
 Creates new HTTPCall from given HTTPRequest.
 

Member Function Documentation

◆ call()

virtual std::unique_ptr< tenduke::http::HTTPCall > tenduke::http::HTTPClient::call ( std::shared_ptr< const tenduke::http::HTTPRequest request) const
pure virtual

Creates new HTTPCall from given HTTPRequest.

Parameters
request-
Returns
-

Implemented in tenduke::http::curl::LibCurlHTTPClient.

◆ request()

virtual tenduke::http::HTTPRequestBuilder tenduke::http::HTTPClient::request ( ) const
pure virtual

The documentation for this class was generated from the following file: