Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
Loading...
Searching...
No Matches
orbit::http::ClientRequest Struct Reference

An outbound HTTP request for Client. More...

#include <Client.hpp>

Public Attributes

std::string method = "GET"
 
std::string url
 http:// or https:// only
 
std::vector< std::pair< std::string, std::string > > headers
 
std::string body
 
std::chrono::milliseconds timeout {30000}
 Whole request, redirects included.
 
std::chrono::milliseconds connect_timeout {10000}
 
bool follow_redirects = true
 To http(s) URLs only.
 
long max_redirects = 5
 
bool verify_tls = true
 Certificate chain and host name.
 
std::string ca_file
 PEM bundle; empty = system store.
 
size_t max_response_size = 10 * 1024 * 1024
 Larger bodies fail the request.
 

Detailed Description

An outbound HTTP request for Client.

Member Data Documentation

◆ body

std::string orbit::http::ClientRequest::body

◆ ca_file

std::string orbit::http::ClientRequest::ca_file

PEM bundle; empty = system store.

◆ connect_timeout

std::chrono::milliseconds orbit::http::ClientRequest::connect_timeout {10000}

◆ follow_redirects

bool orbit::http::ClientRequest::follow_redirects = true

To http(s) URLs only.

◆ headers

std::vector<std::pair<std::string, std::string> > orbit::http::ClientRequest::headers

◆ max_redirects

long orbit::http::ClientRequest::max_redirects = 5

◆ max_response_size

size_t orbit::http::ClientRequest::max_response_size = 10 * 1024 * 1024

Larger bodies fail the request.

◆ method

std::string orbit::http::ClientRequest::method = "GET"

◆ timeout

std::chrono::milliseconds orbit::http::ClientRequest::timeout {30000}

Whole request, redirects included.

◆ url

std::string orbit::http::ClientRequest::url

http:// or https:// only

◆ verify_tls

bool orbit::http::ClientRequest::verify_tls = true

Certificate chain and host name.


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