3#include "endpoint_http.hpp"
4#include "../../core/http/utils.hpp"
6namespace malloy::server
14 std::string resource_old;
15 std::string resource_new;
19 bool matches(
const req_header_t& head)
const override
21 return malloy::http::resource_string(head) == resource_old;
25 handle_retr
handle(
const req_t&,
const http::connection_t&)
const override
static response redirect(status code, std::string_view location)
Definition: generator.cpp:17
boost::beast::http::status status
Definition: types.hpp:23
Definition: endpoint_http_redirect.hpp:11
handle_retr handle(const req_t &, const http::connection_t &) const override
Definition: endpoint_http_redirect.hpp:25
bool matches(const req_header_t &head) const override
Definition: endpoint_http_redirect.hpp:19
Definition: endpoint_http.hpp:22