userver: clients::http::ClientCore Class Reference
Loading...
Searching...
No Matches
clients::http::ClientCore Class Referencefinal

#include <userver/clients/http/client_core.hpp>

Detailed Description

HTTP client that returns a HTTP request builder from CreateRequest().

Usually retrieved from components::HttpClientCore component.

Example usage:

const auto response = http_client_ptr->CreateRequest().post(url, data).timeout(std::chrono::seconds(1)).perform();
EXPECT_TRUE(response->IsOk());

Definition at line 64 of file client_core.hpp.

+ Inheritance diagram for clients::http::ClientCore:

Public Member Functions

Request CreateRequest () override
 Returns a HTTP request builder type with preset values of User-Agent and some of the Testsuite stuff (if any).
 
Request CreateNotSignedRequest ()
 Providing CreateNonSignedRequest() function for the clients::Http alias.
 

Member Function Documentation

◆ CreateNotSignedRequest()

Request clients::http::Client::CreateNotSignedRequest ( )
inlineinherited

Providing CreateNonSignedRequest() function for the clients::Http alias.

Note
This method is thread-safe despite being non-const.

Definition at line 46 of file client.hpp.

◆ CreateRequest()

Request clients::http::ClientCore::CreateRequest ( )
overridevirtual

Returns a HTTP request builder type with preset values of User-Agent and some of the Testsuite stuff (if any).

Note
This method does not apply plugins, they could be applied manually using clients::http::Request::SetPluginsList()
This method is thread-safe despite being non-const.

Implements clients::http::Client.


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