Malloy
Loading...
Searching...
No Matches
malloy::client::http::request_result< Filter > Struct Template Reference

#include <request_result.hpp>

Public Member Functions

 request_result (malloy::error_code ec)

Public Attributes

malloy::error_code error_code
malloy::mp::filter_resp_t< Filter > response

Detailed Description

template<concepts::response_filter Filter>
struct malloy::client::http::request_result< Filter >

Result of an HTTP request

Member Data Documentation

◆ error_code

template<concepts::response_filter Filter>
malloy::error_code malloy::client::http::request_result< Filter >::error_code

The error code.

◆ response

template<concepts::response_filter Filter>
malloy::mp::filter_resp_t<Filter> malloy::client::http::request_result< Filter >::response

The HTTP response.

If the filter has only one body, this type is the response itself. If the filter has more than one body, this type is an std::variant<> of all bodies.

Note
The value of this is invalid/undefined if the error-code is true.

The documentation for this struct was generated from the following file: