24#include <seastar/http/handlers.hh>
25#include <seastar/http/matcher.hh>
26#include <seastar/http/common.hh>
28#include <seastar/core/sstring.hh>
48 for (
auto m : _match_list) {
71 if (_match_list.empty()) {
74 for (
unsigned int i = 0; i < _match_list.size(); i++) {
75 ind = _match_list.at(i)->match(
url, ind, params);
76 if (ind == sstring::npos) {
80 return (ind + 1 >=
url.length()) ? _handler :
nullptr;
89 _match_list.push_back(match);
116 std::vector<matcher*> _match_list;
Definition: handlers.hh:42
Definition: matchrules.hh:42
handler_base * get(const sstring &url, parameters ¶ms)
Definition: matchrules.hh:69
~match_rule()
Definition: matchrules.hh:47
match_rule & add_matcher(matcher *match)
Definition: matchrules.hh:88
match_rule & add_param(const sstring &str, bool fullpath=false)
Definition: matchrules.hh:110
match_rule(handler_base *handler)
Definition: matchrules.hh:58
match_rule & add_str(const sstring &str)
Definition: matchrules.hh:98
Definition: matcher.hh:36
Definition: matcher.hh:65
Definition: matcher.hh:92
Seastar API namespace.
Definition: abort_on_ebadf.hh:26