Kurlyk
Toggle main menu visibility
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
10
namespace
kurlyk
{
11
14
struct
ProxyCheckOptions
{
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
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
kurlyk::ProxyCheckOptions
Configures the no-body request used to check a proxy.
Definition
ProxyCheckOptions.hpp:14
kurlyk::ProxyCheckOptions::connect_timeout
long connect_timeout
Connection timeout in seconds.
Definition
ProxyCheckOptions.hpp:17
kurlyk::ProxyCheckOptions::ca_file
std::string ca_file
Optional CA bundle used for HTTPS verification.
Definition
ProxyCheckOptions.hpp:16
kurlyk::ProxyCheckOptions::test_url
std::string test_url
HTTP or HTTPS URL requested through the proxy.
Definition
ProxyCheckOptions.hpp:15
kurlyk::ProxyCheckOptions::follow_redirects
bool follow_redirects
Follow redirects returned by the test endpoint.
Definition
ProxyCheckOptions.hpp:19
kurlyk::ProxyCheckOptions::proxy_tunnel
bool proxy_tunnel
Force an HTTP CONNECT tunnel where supported.
Definition
ProxyCheckOptions.hpp:20
kurlyk::ProxyCheckOptions::request_timeout
long request_timeout
Complete request timeout in seconds.
Definition
ProxyCheckOptions.hpp:18
include
kurlyk
http
data
ProxyCheckOptions.hpp
Generated by
1.18.0