|
uvco 0.1
|
#include <http_server.h>
Public Member Functions | |
| void | addRoute (const std::string &path, HttpHandler handler) |
| HttpHandler | getHandler (const std::string &path) const |
Private Attributes | |
| std::unordered_map< std::string, HttpHandler > | routes_ |
A simple HTTP router mapping paths to handlers. Supplied to the httpServer() function to dispatch requests to handlers.
| void uvco::examples::Router::addRoute | ( | const std::string & | path, |
| HttpHandler | handler ) |
|
nodiscard |
|
private |