Kurlyk
Loading...
Searching...
No Matches
kurlyk::HttpResponse Class Reference

Represents the response received from an HTTP request, including headers, content, and status. More...

#include <HttpResponse.hpp>

Public Attributes

Headers headers
 HTTP response headers.
 
std::string content
 The body content of the HTTP response.
 
std::error_code error_code
 Error code indicating issues with the response, if any.
 
std::string error_message
 Error message detailing the issue, if any.
 
long status_code = 0
 HTTP status code of the response (e.g., 200, 404).
 
long retry_attempt = 0
 Number of retry attempts performed for this request.
 
bool ready = false
 Indicates if the response is ready to be processed.
 
double namelookup_time = -1
 Time until name resolution completed (DNS).
 
double connect_time = -1
 Time until TCP connection established.
 
double appconnect_time = -1
 Time until SSL handshake completed (HTTPS only).
 
double pretransfer_time = -1
 Time until request is ready to be sent.
 
double starttransfer_time = -1
 Time until first byte is received from the server.
 
double total_time = -1
 Total time of the transfer.
 

Detailed Description

Represents the response received from an HTTP request, including headers, content, and status.

Definition at line 12 of file HttpResponse.hpp.

Member Data Documentation

◆ appconnect_time

double kurlyk::HttpResponse::appconnect_time = -1

Time until SSL handshake completed (HTTPS only).

Definition at line 25 of file HttpResponse.hpp.

◆ connect_time

double kurlyk::HttpResponse::connect_time = -1

Time until TCP connection established.

Definition at line 24 of file HttpResponse.hpp.

◆ content

std::string kurlyk::HttpResponse::content

The body content of the HTTP response.

Definition at line 15 of file HttpResponse.hpp.

◆ error_code

std::error_code kurlyk::HttpResponse::error_code

Error code indicating issues with the response, if any.

Definition at line 16 of file HttpResponse.hpp.

◆ error_message

std::string kurlyk::HttpResponse::error_message

Error message detailing the issue, if any.

Definition at line 17 of file HttpResponse.hpp.

◆ headers

Headers kurlyk::HttpResponse::headers

HTTP response headers.

Definition at line 14 of file HttpResponse.hpp.

◆ namelookup_time

double kurlyk::HttpResponse::namelookup_time = -1

Time until name resolution completed (DNS).

Definition at line 23 of file HttpResponse.hpp.

◆ pretransfer_time

double kurlyk::HttpResponse::pretransfer_time = -1

Time until request is ready to be sent.

Definition at line 26 of file HttpResponse.hpp.

◆ ready

bool kurlyk::HttpResponse::ready = false

Indicates if the response is ready to be processed.

Definition at line 20 of file HttpResponse.hpp.

◆ retry_attempt

long kurlyk::HttpResponse::retry_attempt = 0

Number of retry attempts performed for this request.

Definition at line 19 of file HttpResponse.hpp.

◆ starttransfer_time

double kurlyk::HttpResponse::starttransfer_time = -1

Time until first byte is received from the server.

Definition at line 27 of file HttpResponse.hpp.

◆ status_code

long kurlyk::HttpResponse::status_code = 0

HTTP status code of the response (e.g., 200, 404).

Definition at line 18 of file HttpResponse.hpp.

◆ total_time

double kurlyk::HttpResponse::total_time = -1

Total time of the transfer.

Definition at line 28 of file HttpResponse.hpp.


The documentation for this class was generated from the following file: