Kurlyk
Toggle main menu visibility
Loading...
Searching...
No Matches
ProxyCheckResult.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_RESULT_HPP_INCLUDED
3
#define KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_RESULT_HPP_INCLUDED
4
7
8
#include <string>
9
#include <system_error>
10
11
namespace
kurlyk
{
12
15
struct
ProxyCheckResult
{
16
bool
reachable
=
false
;
17
bool
http_ok
=
false
;
18
bool
https_ok
=
false
;
19
20
std::error_code
error_code
;
21
std::string
error_message
;
22
long
http_status
= 0;
23
24
long
connect_latency_ms
= 0;
25
long
tls_latency_ms
= 0;
26
long
ttfb_ms
= 0;
27
long
total_latency_ms
= 0;
28
};
29
30
}
// namespace kurlyk
31
32
#endif
// KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_RESULT_HPP_INCLUDED
kurlyk
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
kurlyk::ProxyCheckResult
Stores proxy reachability, protocol status, errors, and curl timing metrics.
Definition
ProxyCheckResult.hpp:15
kurlyk::ProxyCheckResult::error_message
std::string error_message
Error details supplied by the HTTP backend.
Definition
ProxyCheckResult.hpp:21
kurlyk::ProxyCheckResult::reachable
bool reachable
True when an HTTP response was received through the proxy.
Definition
ProxyCheckResult.hpp:16
kurlyk::ProxyCheckResult::tls_latency_ms
long tls_latency_ms
TLS setup time after TCP connect, in milliseconds; includes proxy CONNECT negotiation.
Definition
ProxyCheckResult.hpp:25
kurlyk::ProxyCheckResult::error_code
std::error_code error_code
Transport, HTTP, or client-side error.
Definition
ProxyCheckResult.hpp:20
kurlyk::ProxyCheckResult::total_latency_ms
long total_latency_ms
Total request time, in milliseconds.
Definition
ProxyCheckResult.hpp:27
kurlyk::ProxyCheckResult::connect_latency_ms
long connect_latency_ms
Elapsed time until the TCP connection was established, in milliseconds.
Definition
ProxyCheckResult.hpp:24
kurlyk::ProxyCheckResult::http_ok
bool http_ok
True when the test endpoint returned a 2xx or 3xx response.
Definition
ProxyCheckResult.hpp:17
kurlyk::ProxyCheckResult::ttfb_ms
long ttfb_ms
Elapsed time until the first response byte, in milliseconds.
Definition
ProxyCheckResult.hpp:26
kurlyk::ProxyCheckResult::https_ok
bool https_ok
True when an HTTPS test returned a 2xx or 3xx response.
Definition
ProxyCheckResult.hpp:18
kurlyk::ProxyCheckResult::http_status
long http_status
HTTP status returned by the test endpoint or proxy.
Definition
ProxyCheckResult.hpp:22
include
kurlyk
http
data
ProxyCheckResult.hpp
Generated by
1.18.0