24#include <seastar/http/request.hh>
25#include <seastar/http/common.hh>
26#include <seastar/http/exception.hh>
27#include <seastar/http/reply.hh>
34typedef const http::request& const_req;
43 std::vector<sstring> _mandatory_param;
57 std::unique_ptr<http::request> req, std::unique_ptr<http::reply> rep) = 0;
66 _mandatory_param.push_back(param);
76 for (
auto& param : _mandatory_param) {
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
Definition: handlers.hh:42
void verify_mandatory_params(const http::request &req) const
Definition: handlers.hh:75
handler_base & mandatory(const sstring ¶m)
Definition: handlers.hh:65
virtual future< std::unique_ptr< http::reply > > handle(const sstring &path, std::unique_ptr< http::request > req, std::unique_ptr< http::reply > rep)=0
Definition: exception.hh:102
Seastar API namespace.
Definition: abort_on_ebadf.hh:26
Definition: request.hh:52
sstring get_query_param(const sstring &key) const
Definition: request.hh:115