MySQL 9.1.0
Source Code Documentation
HttpRequestRouter::RouteMatcher Class Reference

Public Member Functions

 RouteMatcher (std::string url_pattern, BaseRequestHandlerPtr handler)
 
stdx::expected< void, UErrorCode > compile ()
 
stdx::expected< void, UErrorCode > matches (std::string_view input) const
 
stdx::expected< void, UErrorCode > matches (const icu::UnicodeString &input) const
 
BaseRequestHandlerPtr handler () const
 
const std::string & url_pattern () const
 

Private Attributes

std::string url_pattern_
 
BaseRequestHandlerPtr handler_
 
std::unique_ptr< icu::RegexPattern > regex_pattern_
 

Constructor & Destructor Documentation

◆ RouteMatcher()

HttpRequestRouter::RouteMatcher::RouteMatcher ( std::string  url_pattern,
BaseRequestHandlerPtr  handler 
)
inline

Member Function Documentation

◆ compile()

stdx::expected< void, UErrorCode > HttpRequestRouter::RouteMatcher::compile ( )

◆ handler()

BaseRequestHandlerPtr HttpRequestRouter::RouteMatcher::handler ( ) const
inline

◆ matches() [1/2]

stdx::expected< void, UErrorCode > HttpRequestRouter::RouteMatcher::matches ( const icu::UnicodeString &  input) const

◆ matches() [2/2]

stdx::expected< void, UErrorCode > HttpRequestRouter::RouteMatcher::matches ( std::string_view  input) const

◆ url_pattern()

const std::string & HttpRequestRouter::RouteMatcher::url_pattern ( ) const
inline

Member Data Documentation

◆ handler_

BaseRequestHandlerPtr HttpRequestRouter::RouteMatcher::handler_
private

◆ regex_pattern_

std::unique_ptr<icu::RegexPattern> HttpRequestRouter::RouteMatcher::regex_pattern_
private

◆ url_pattern_

std::string HttpRequestRouter::RouteMatcher::url_pattern_
private

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