Response

struct Response

Public Types

using result_t = std::tuple<http::Status, http::Category, std::string_view>

Public Functions

explicit Response(std::exception_ptr&&)
Response(http::Status, Headers&&, std::string_view const &body)
Response(Response&&) = default
Response(Response const&) = delete
inline void set(std::exception_ptr &&exception)
http::Category category() const
http::Status raw_status() const
result_t result() const
inline operator result_t() const
http::Status status() const
void expect(http::Status) const
template<typename C>
inline bool dispatch(http::Header header, C callback) const
std::string_view const &body() const
std::pair<http::Status, std::string_view> get() const
bool failed() const
inline bool success() const
template<typename Context>
inline auto format_to(Context &context) const