The Configuration struct encapsulates all options for creating requests.
More...
#include <request.h>
The Configuration struct encapsulates all options for creating requests.
Definition at line 162 of file request.h.
◆ from_uri_as_string()
static Configuration core::net::http::Request::Configuration::from_uri_as_string |
( |
const std::string & |
uri | ) |
|
|
inlinestatic |
from_uri_as_string creates a new instance of Configuration for a url.
- Parameters
-
uri | The url of the web resource to issue a request for. |
- Returns
- A new Configuration instance.
Definition at line 169 of file request.h.
References uri.
struct { ... } core::net::http::Request::Configuration::authentication_handler |
Encapsulates proxy and http authentication handlers.
◆ for_http
Invoked for querying user credentials to do basic/digest auth.
Definition at line 212 of file request.h.
◆ for_proxy
Invoked for querying user credentials to authenticate proxy accesses.
Definition at line 214 of file request.h.
◆ header
Header core::net::http::Request::Configuration::header |
Custom header fields that are added to the request.
Definition at line 181 of file request.h.
◆ on_error
ErrorHandler core::net::http::Request::Configuration::on_error |
Invoked to report a request that finished with an error.
Definition at line 190 of file request.h.
◆ on_progress
Invoked to report progress.
Definition at line 184 of file request.h.
◆ on_response
Invoked to report a successfully finished request.
Definition at line 187 of file request.h.
struct { ... } core::net::http::Request::Configuration::ssl |
SSL-specific options. Please be very careful when adjusting these.
◆ uri
std::string core::net::http::Request::Configuration::uri |
◆ verify_host
bool core::net::http::Request::Configuration::verify_host |
Initial value:Yes, we want to be strict and verify the host by default, too.
Definition at line 202 of file request.h.
◆ verify_peer
bool core::net::http::Request::Configuration::verify_peer |
Initial value:Yes, we want to verify our peer by default.
Definition at line 196 of file request.h.
The documentation for this struct was generated from the following file: