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

Represents an HTTP response. More...

#include <HttpResponse.hpp>

Public Attributes

Headers headers
 HTTP response headers.
std::string content
 Body content of the HTTP response.
std::error_code error_code
 Error code indicating response or transport issues, if any.
std::string error_message
 Error message describing 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 whether the response is final and ready to be processed.
bool stream_chunk = false
 Indicates whether content contains an intermediate streaming body chunk.
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 an HTTP response.

HttpResponse stores response headers, body, status, errors, retry metadata, and timing metrics.

Definition at line 15 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 29 of file HttpResponse.hpp.

◆ connect_time

double kurlyk::HttpResponse::connect_time = -1

Time until TCP connection established.

Definition at line 28 of file HttpResponse.hpp.

◆ content

std::string kurlyk::HttpResponse::content

Body content of the HTTP response.

Definition at line 18 of file HttpResponse.hpp.

◆ error_code

std::error_code kurlyk::HttpResponse::error_code

Error code indicating response or transport issues, if any.

Definition at line 19 of file HttpResponse.hpp.

◆ error_message

std::string kurlyk::HttpResponse::error_message

Error message describing the issue, if any.

Definition at line 20 of file HttpResponse.hpp.

◆ headers

Headers kurlyk::HttpResponse::headers

HTTP response headers.

Definition at line 17 of file HttpResponse.hpp.

◆ namelookup_time

double kurlyk::HttpResponse::namelookup_time = -1

Time until name resolution completed (DNS).

Definition at line 27 of file HttpResponse.hpp.

◆ pretransfer_time

double kurlyk::HttpResponse::pretransfer_time = -1

Time until request is ready to be sent.

Definition at line 30 of file HttpResponse.hpp.

◆ ready

bool kurlyk::HttpResponse::ready = false

Indicates whether the response is final and ready to be processed.

Definition at line 23 of file HttpResponse.hpp.

◆ retry_attempt

long kurlyk::HttpResponse::retry_attempt = 0

Number of retry attempts performed for this request.

Definition at line 22 of file HttpResponse.hpp.

◆ starttransfer_time

double kurlyk::HttpResponse::starttransfer_time = -1

Time until first byte is received from the server.

Definition at line 31 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 21 of file HttpResponse.hpp.

◆ stream_chunk

bool kurlyk::HttpResponse::stream_chunk = false

Indicates whether content contains an intermediate streaming body chunk.

Definition at line 24 of file HttpResponse.hpp.

◆ total_time

double kurlyk::HttpResponse::total_time = -1

Total time of the transfer.

Definition at line 32 of file HttpResponse.hpp.


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