|
|
template<typename... Bodies> |
| using | response_t = std::variant< malloy::http::response< Bodies >... > |
| |
|
template<typename... Bodies> |
| using | writer_t = std::function< void(const boost::beast::http::request_header<> &, std::variant< malloy::http::response< Bodies >... > &&, const http::connection_t &)> |
| |
|
using | handle_retr = std::optional< malloy::http::response< boost::beast::http::string_body > > |
| |
|
using | req_header_t = boost::beast::http::request_header<> |
| |
|
using | req_t = http::request_generator_t |
| |
◆ handle()
| handle_retr malloy::server::endpoint_http_redirect::handle |
( |
const req_t & |
req, |
|
|
const http::connection_t & |
conn |
|
) |
| const |
|
inlineoverridevirtual |
Handle the request and return the corresponding response.
- Parameters
-
- Returns
- The response for the specified request.
Implements malloy::server::endpoint_http.
◆ matches()
| bool malloy::server::endpoint_http_redirect::matches |
( |
const req_header_t & |
req | ) |
const |
|
inlineoverridevirtual |
Checks whether this endpoint would match the specified request.
The default implementation only checks for the matching method.
- Parameters
-
| req | The request to check. |
| location | The location to check for matching. |
- Returns
- Whether this endpoint matches the request.
Reimplemented from malloy::server::endpoint_http.
The documentation for this struct was generated from the following file: