|
| | express_router_t ()=default |
| |
| | express_router_t (express_router_t &&)=default |
| |
| request_handling_status_t | operator() (request_handle_t req) const |
| |
| void | non_matched_request_handler (non_matched_request_handler_t nmrh) |
| | Set handler for requests that don't match any route. More...
|
| |
|
| void | add_handler (http_method_id_t method, string_view_t route_path, express_request_handler_t handler) |
| | Add handlers. More...
|
| |
| void | add_handler (http_method_id_t method, string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
| void | http_delete (string_view_t route_path, express_request_handler_t handler) |
| |
| void | http_delete (string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
| void | http_get (string_view_t route_path, express_request_handler_t handler) |
| |
| void | http_get (string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
| void | http_head (string_view_t route_path, express_request_handler_t handler) |
| |
| void | http_head (string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
| void | http_post (string_view_t route_path, express_request_handler_t handler) |
| |
| void | http_post (string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
| void | http_put (string_view_t route_path, express_request_handler_t handler) |
| |
| void | http_put (string_view_t route_path, const path2regex::options_t &options, express_request_handler_t handler) |
| |
template<typename Regex_Engine = std_regex_engine_t>
class restinio::router::express_router_t< Regex_Engine >
Express.js style router.
- Examples:
- sample/hello_world/main.cpp, and sample/websocket_wss/main.cpp.
Definition at line 516 of file express.hpp.