FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::net::HttpResponse Struct Reference

#include <fastmm/net/http_client.hpp>

Public Member Functions

std::string_view header (std::string_view name) const noexcept
 
bool ok () const noexcept
 

Public Attributes

int status = 0
 0 when error is set
 
NetError error = NetError::None
 Timeout, Closed, Protocol, Canceled, ...
 
std::string_view error_detail
 
HttpHeaders headers
 views into the receive buffer
 
std::string_view body
 decoded (de-chunked) body
 
std::int64_t rx_ts = 0
 reactor clock when the response completed
 

Member Function Documentation

◆ header()

std::string_view fastmm::net::HttpResponse::header ( std::string_view  name) const
inlinenoexcept

◆ ok()

bool fastmm::net::HttpResponse::ok ( ) const
inlinenoexcept

Member Data Documentation

◆ status

int fastmm::net::HttpResponse::status = 0

0 when error is set

◆ error

NetError fastmm::net::HttpResponse::error = NetError::None

Timeout, Closed, Protocol, Canceled, ...

◆ error_detail

std::string_view fastmm::net::HttpResponse::error_detail

◆ headers

HttpHeaders fastmm::net::HttpResponse::headers

views into the receive buffer

◆ body

std::string_view fastmm::net::HttpResponse::body

decoded (de-chunked) body

◆ rx_ts

std::int64_t fastmm::net::HttpResponse::rx_ts = 0

reactor clock when the response completed