Configuration options for the HTTP request. More...
#include <staticlib/http/request_options.hpp>
Configuration options for the HTTP request.
| bool staticlib::http::request_options::abort_on_connect_error = true |
HttpException will be thrown from read method on unsuccessful connection attempt, see also 'connecttimeout_millis'.
| bool staticlib::http::request_options::abort_on_response_error = true |
HttpException will be thrown from read method on HTTP response code >= 400.
| std::string staticlib::http::request_options::accept_encoding = "gzip" |
| uint32_t staticlib::http::request_options::buffersize_bytes = 16384 |
| std::string staticlib::http::request_options::cainfo_filename = "" |
| uint32_t staticlib::http::request_options::connecttimeout_millis = 10000 |
| uint16_t staticlib::http::request_options::consumer_thread_wakeup_timeout_millis = 100 |
Consumer thread wakeup timeout (in milliseconds)
| std::string staticlib::http::request_options::crlfile_filename = "" |
| bool staticlib::http::request_options::failonerror = false |
| bool staticlib::http::request_options::followlocation = true |
| bool staticlib::http::request_options::force_http_10 = false |
| std::vector<std::pair<std::string, std::string> > staticlib::http::request_options::headers |
Headers to send with a request.
| uint16_t staticlib::http::request_options::max_number_of_response_headers = 128 |
Max allowed number of response headers.
| uint32_t staticlib::http::request_options::max_recv_speed_large_bytes_per_second = 0 |
| uint32_t staticlib::http::request_options::max_sent_speed_large_bytes_per_second = 0 |
| uint32_t staticlib::http::request_options::maxredirs = 32 |
| std::string staticlib::http::request_options::method = "" |
HTTP method to use.
| bool staticlib::http::request_options::noprogress = true |
| bool staticlib::http::request_options::nosignal = true |
| bool staticlib::http::request_options::path_as_is = true |
| uint32_t staticlib::http::request_options::request_body_content_length = 0 |
"Content-Length" header value for request body, used only if "send_request_body_content_length" is enabled
| bool staticlib::http::request_options::require_tls = false |
| bool staticlib::http::request_options::send_request_body_content_length = false |
Whether to specify a "Content-Length" header for the request body, not specified by default, "Transfer-Encoding: chunked" is used instead.
If set to "true", then client must also specify a "request_body_content_length" parameter
| std::string staticlib::http::request_options::ssl_cipher_list = "" |
| std::string staticlib::http::request_options::ssl_key_type = "" |
| std::string staticlib::http::request_options::ssl_keypasswd = "" |
| bool staticlib::http::request_options::ssl_verifyhost = false |
| bool staticlib::http::request_options::ssl_verifypeer = false |
| bool staticlib::http::request_options::ssl_verifystatus = false |
| std::string staticlib::http::request_options::sslcert_filename = "" |
| std::string staticlib::http::request_options::sslcertype = "" |
| std::string staticlib::http::request_options::sslkey_filename = "" |
| bool staticlib::http::request_options::tcp_keepalive = false |
| uint32_t staticlib::http::request_options::tcp_keepidle_secs = 300 |
| uint32_t staticlib::http::request_options::tcp_keepintvl_secs = 300 |
| bool staticlib::http::request_options::tcp_nodelay = false |
| uint32_t staticlib::http::request_options::timeout_millis = 15000 |
| std::string staticlib::http::request_options::useragent = "" |
1.8.1.2