Kurlyk
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
11namespace kurlyk {
12
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
25 long tls_latency_ms = 0;
26 long ttfb_ms = 0;
28 };
29
30} // namespace kurlyk
31
32#endif // KURLYK_HEADER_KURLYK_HTTP_DATA_PROXY_CHECK_RESULT_HPP_INCLUDED
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
Stores proxy reachability, protocol status, errors, and curl timing metrics.
std::string error_message
Error details supplied by the HTTP backend.
bool reachable
True when an HTTP response was received through the proxy.
long tls_latency_ms
TLS setup time after TCP connect, in milliseconds; includes proxy CONNECT negotiation.
std::error_code error_code
Transport, HTTP, or client-side error.
long total_latency_ms
Total request time, in milliseconds.
long connect_latency_ms
Elapsed time until the TCP connection was established, in milliseconds.
bool http_ok
True when the test endpoint returned a 2xx or 3xx response.
long ttfb_ms
Elapsed time until the first response byte, in milliseconds.
bool https_ok
True when an HTTPS test returned a 2xx or 3xx response.
long http_status
HTTP status returned by the test endpoint or proxy.