Goby3  3.1.5a
2024.05.23
httplib::detail::RegexMatcher Class Reference

#include <goby/util/thirdparty/cpp-httplib/httplib.h>

Inheritance diagram for httplib::detail::RegexMatcher:
httplib::detail::MatcherBase

Public Member Functions

 RegexMatcher (const std::string &pattern)
 
bool match (Request &request) const override
 
- Public Member Functions inherited from httplib::detail::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 758 of file httplib.h.

Constructor & Destructor Documentation

◆ RegexMatcher()

httplib::detail::RegexMatcher::RegexMatcher ( const std::string &  pattern)
inline

Definition at line 761 of file httplib.h.

Member Function Documentation

◆ match()

bool httplib::detail::RegexMatcher::match ( Request request) const
inlineoverridevirtual

Implements httplib::detail::MatcherBase.

Definition at line 6187 of file httplib.h.


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