4#include "Stroika/Foundation/IO/Network/HTTP/Methods.h"
14 : fVerbAndPathMatch_{make_pair (verbMatch, pathMatch)}
19 :
Route{IO::Network::HTTP::MethodsRegEx::kGet, pathMatch, handler}
22 inline Route::Route (
const function<
bool (
const String& method,
const String& hostRelPath,
const Request& request)>& requestMatcher,
23 const RequestHandler& handler)
24 : fRequestMatch_{requestMatcher}
RegularExpression is a compiled regular expression which can be used to match on a String class.
Route(const RegularExpression &verbMatch, const RegularExpression &pathMatch, const RequestHandler &handler)