#include <http_server_plugin.h>
◆ append()
void HttpRequestRouter::append |
( |
const std::string & |
url_regex_str, |
|
|
std::unique_ptr< BaseRequestHandler > |
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 |
( |
| ) |
|
◆ remove()
void HttpRequestRouter::remove |
( |
const std::string & |
url_regex_str | ) |
|
◆ require_realm()
void HttpRequestRouter::require_realm |
( |
const std::string & |
realm | ) |
|
|
inline |
◆ route()
◆ route_default()
void HttpRequestRouter::route_default |
( |
HttpRequest & |
req | ) |
|
◆ set_default_route()
◆ default_route_
◆ request_handlers_
std::vector<RouterData> HttpRequestRouter::request_handlers_ |
|
private |
◆ require_realm_
std::string HttpRequestRouter::require_realm_ |
|
private |
◆ route_mtx_
std::mutex HttpRequestRouter::route_mtx_ |
|
private |
The documentation for this class was generated from the following files: