5#include "type_traits.hpp"
110 template<malloy::http::concepts::body Body>
116 return file(storage_base_path, malloy::http::resource_string(req));
129 file(
const std::filesystem::path& storage_path, std::string_view rel_path);
Definition: generator.hpp:22
static response redirect(status code, std::string_view location)
Definition: generator.cpp:17
static file_response file(const request< Body > &req, const std::filesystem::path &storage_base_path)
Definition: generator.hpp:114
static response bad_request(std::string_view reason)
Definition: generator.cpp:27
static response not_found(std::string_view resource)
Definition: generator.cpp:37
static response ok()
Definition: generator.cpp:9
virtual ~generator()=default
static response server_error(std::string_view what)
Definition: generator.cpp:47
Definition: request.hpp:19
Definition: response.hpp:22
boost::beast::http::status status
Definition: types.hpp:23