#include <endpoints.hpp>
Classes | |
| struct | key_compare |
Public Member Functions | |
| template<typename T, typename F> | |
| void | subscribe (key_type const &key, std::shared_ptr< T > t, F &&f) |
Protected Member Functions | |
| Response | syncResponse (httpd_req_t *req) |
| esp_err_t | asyncResponse (httpd_req_t *req) |
Private Types | |
| using | key_type = httpd_uri_t |
| using | sync_mapped_type = std::vector<std::function<Response(Request const&)>> |
| Mapped type for HTTP requests. | |
| using | async_mapped_type = std::vector<std::function<esp_err_t(Message&)>> |
| Mapped type for WebSockets. | |
Private Member Functions | |
| httpd_uri_t | req2key (httpd_req_t *req) const |
Private Attributes | |
| std::map< key_type, sync_mapped_type, key_compare > | _sync_map |
| std::map< key_type, async_mapped_type, key_compare > | _async_map |
|
private |
|
private |
|
private |
|
inlineprotected |
|
inlineprivate |
|
inline |
|
inlineprotected |
|
private |
|
private |