Struct thl::net::HttpResult#

struct HttpResult#

Collaboration diagram for thl::net::HttpResult:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "3" [label="std::basic_string< Char >" tooltip="std::basic_string< Char >"] "2" [label="std::string" tooltip="std::string"] "1" [label="thl::net::HttpResult" tooltip="thl::net::HttpResult" fillcolor="#BFBFBF"] "2" -> "3" [dir=forward tooltip="public-inheritance"] "1" -> "2" [dir=forward tooltip="usage"] }

Outcome of a single request.

Public Functions

inline bool ok() const#

Public Members

HttpStatus m_status = HttpStatus::NetworkError#
int m_http_code = 0#

Set when m_status is HttpError; 0 otherwise.

std::uint64_t m_bytes_written = 0#

Bytes written to the destination by this call — excludes bytes already present when resuming.

std::string m_message#

Human-readable detail for logs. Never shown verbatim to a user.