Struct thl::net::HttpResult#
-
struct HttpResult#
Collaboration diagram for thl::net::HttpResult:
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.
-
inline bool ok() const#