#include <http_request_router.h>
◆ BaseRequestHandlerPtr
◆ RequestHandler
◆ append()
void HttpRequestRouter::append |
( |
const std::string & |
url_regex_str, |
|
|
std::unique_ptr< RequestHandler > |
cb |
|
) |
| |
Request router.
send requests for a path of the URI to a handler callback
if no handler is found, reply with 404 not found
◆ clear_default_route()
void HttpRequestRouter::clear_default_route |
( |
| ) |
|
◆ find_route_handler()
◆ handler_not_found()
◆ remove() [1/2]
void HttpRequestRouter::remove |
( |
const std::string & |
url_regex_str | ) |
|
◆ remove() [2/2]
void HttpRequestRouter::remove |
( |
const void * |
handler_id | ) |
|
◆ require_realm()
void HttpRequestRouter::require_realm |
( |
const std::string & |
realm | ) |
|
|
inline |
◆ route()
◆ set_default_route()
void HttpRequestRouter::set_default_route |
( |
std::unique_ptr< RequestHandler > |
cb | ) |
|
◆ default_route_
◆ request_handlers_
std::vector<RouteMatcher> HttpRequestRouter::request_handlers_ |
|
private |
◆ require_realm_
std::string HttpRequestRouter::require_realm_ |
|
private |
◆ route_mtx_
std::shared_mutex HttpRequestRouter::route_mtx_ |
|
mutableprivate |
The documentation for this class was generated from the following files: