Response#

struct Response#

Public Types

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

Public Functions

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