2#ifndef _KURLYK_HTTP_RESPONSE_HPP_INCLUDED
3#define _KURLYK_HTTP_RESPONSE_HPP_INCLUDED
Represents the response received from an HTTP request, including headers, content,...
long retry_attempt
Number of retry attempts performed for this request.
double total_time
Total time of the transfer.
double namelookup_time
Time until name resolution completed (DNS).
Headers headers
HTTP response headers.
double connect_time
Time until TCP connection established.
long status_code
HTTP status code of the response (e.g., 200, 404).
std::string content
The body content of the HTTP response.
std::string error_message
Error message detailing the issue, if any.
double pretransfer_time
Time until request is ready to be sent.
double appconnect_time
Time until SSL handshake completed (HTTPS only).
std::error_code error_code
Error code indicating issues with the response, if any.
double starttransfer_time
Time until first byte is received from the server.
bool ready
Indicates if the response is ready to be processed.
Primary namespace for the Kurlyk library, encompassing initialization, request management,...
std::function< void(HttpResponsePtr response)> HttpResponseCallback
Type definition for the callback function used to handle HTTP responses.
std::unique_ptr< HttpResponse > HttpResponsePtr
A unique pointer to an HttpResponse object for memory management.
utils::CaseInsensitiveMultimap Headers
Alias for HTTP headers, providing a case-insensitive unordered multimap.