24#include <seastar/http/handlers.hh>
25#include <seastar/core/iostream.hh>
26#include <seastar/util/modules.hh>
32SEASTAR_MODULE_EXPORT_BEGIN
109 std::unique_ptr<http::request> req, std::unique_ptr<http::reply> rep);
139 std::unique_ptr<http::request> req, std::unique_ptr<http::reply> rep)
override;
160 nullptr,
bool force_path =
true)
166 std::unique_ptr<http::request> req, std::unique_ptr<http::reply> rep)
override;
173SEASTAR_MODULE_EXPORT_END
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
Definition: file_handler.hh:125
future< std::unique_ptr< http::reply > > handle(const sstring &path, std::unique_ptr< http::request > req, std::unique_ptr< http::reply > rep) override
directory_handler(const sstring &doc_root, file_transformer *transformer=nullptr)
Definition: file_handler.hh:150
future< std::unique_ptr< http::reply > > handle(const sstring &path, std::unique_ptr< http::request > req, std::unique_ptr< http::reply > rep) override
file_handler(const sstring &file, file_transformer *transformer=nullptr, bool force_path=true)
Definition: file_handler.hh:159
Definition: file_handler.hh:66
static sstring get_extension(const sstring &file)
file_interaction_handler * set_transformer(file_transformer *t)
Definition: file_handler.hh:80
future< std::unique_ptr< http::reply > > read(sstring file, std::unique_ptr< http::request > req, std::unique_ptr< http::reply > rep)
bool redirect_if_needed(const http::request &req, http::reply &rep) const
Definition: handlers.hh:42
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: request.hh:52