Seastar
High performance C++ framework for concurrent servers
|
Check if the url match a predefine string.
When parsing a match rule such as '/file/{path}' the str_match would parse the '/file' part
#include <seastar/http/matcher.hh>
Public Member Functions | |
str_matcher (const sstring &cmp) | |
virtual size_t | match (const sstring &url, size_t ind, parameters ¶m) override |
|
inlineexplicit |
Constructor
cmp | the string to match |
|
overridevirtual |
check if the given url matches the rule
url | the url to check |
ind | the position to start from |
param | fill the parameters hash |
Implements seastar::httpd::matcher.