Seastar
High performance C++ framework for concurrent servers
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
seastar::httpd::matcher Class Referenceabstract

Detailed Description

a base class for the url matching. Each implementation check if the given url matches a criteria

#include <seastar/http/matcher.hh>

Inheritance diagram for seastar::httpd::matcher:
seastar::httpd::param_matcher seastar::httpd::str_matcher

Public Member Functions

virtual size_t match (const sstring &url, size_t ind, parameters &param)=0
 

Member Function Documentation

◆ match()

virtual size_t seastar::httpd::matcher::match ( const sstring &  url,
size_t  ind,
parameters param 
)
pure virtual

check if the given url matches the rule

Parameters
urlthe url to check
indthe position to start from
paramfill the parameters hash
Returns
the end of of the matched part, or sstring::npos if not matched

Implemented in seastar::httpd::param_matcher, and seastar::httpd::str_matcher.


The documentation for this class was generated from the following file: