Kurlyk
Loading...
Searching...
No Matches
ProxyCheckOptions.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_OPTIONS_HPP_INCLUDED
3#define KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_OPTIONS_HPP_INCLUDED
4
7
8#include <string>
9
10namespace kurlyk {
11
15 std::string test_url = "https://example.com/";
16 std::string ca_file;
17 long connect_timeout = 3;
18 long request_timeout = 5;
19 bool follow_redirects = false;
20 bool proxy_tunnel = false;
21 };
22
23} // namespace kurlyk
24
25#endif // KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_OPTIONS_HPP_INCLUDED
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
Configures the no-body request used to check a proxy.
long connect_timeout
Connection timeout in seconds.
std::string ca_file
Optional CA bundle used for HTTPS verification.
std::string test_url
HTTP or HTTPS URL requested through the proxy.
bool follow_redirects
Follow redirects returned by the test endpoint.
bool proxy_tunnel
Force an HTTP CONNECT tunnel where supported.
long request_timeout
Complete request timeout in seconds.