RegexMatcher Class Referencefinal

Performs std::regex_match on request path and stores the result in Request::matches. More...

#include <RobotAPI/libraries/armem/server/ltm/detail/mixins/util/httplib.h>

+ Inheritance diagram for RegexMatcher:

Public Member Functions

bool match (Request &request) const override
 
 RegexMatcher (const std::string &pattern)
 
- Public Member Functions inherited from MatcherBase
virtual ~MatcherBase ()=default
 

Detailed Description

Performs std::regex_match on request path and stores the result in Request::matches.

Note that regex match is performed directly on the whole request. This means that wildcard patterns may match multiple path segments with /: "/begin/(.*)/end" will match both "/begin/middle/end" and "/begin/1/2/end".

Definition at line 903 of file httplib.h.

Constructor & Destructor Documentation

◆ RegexMatcher()

RegexMatcher ( const std::string &  pattern)
inline

Definition at line 905 of file httplib.h.

Member Function Documentation

◆ match()

bool match ( Request request) const
inlineoverridevirtual

Implements MatcherBase.

Definition at line 6075 of file httplib.h.


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