|
DeterministicESPAsyncWebServer 1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
Layer 7 (Application) — public HTTP routing API. More...
Go to the source code of this file.
Classes | |
| struct | Route |
| Internal route entry stored in the routing table. More... | |
| class | DetWebServer |
| Single-port HTTP server with deterministic, zero-allocation execution. More... | |
Typedefs | |
| typedef void(* | Handler) (uint8_t slot_id, HttpReq *request) |
| Callback signature for HTTP request handlers. | |
Enumerations | |
| enum | HttpMethod { HTTP_GET , HTTP_POST , HTTP_PUT , HTTP_DELETE , HTTP_PATCH , HTTP_HEAD , HTTP_OPTIONS } |
| HTTP request methods supported by the router. More... | |
| enum | RouteType { ROUTE_HTTP } |
| Discriminates between HTTP, WebSocket, and SSE route entries. More... | |
Layer 7 (Application) — public HTTP routing API.
This is the only header most application code needs to include. The full OSI include chain is pulled in automatically:
Feature flags — define any of these to 0 before including to strip the feature from the build entirely:
Determinism guarantees
handle() is safe to call every Arduino loop() iteration.Definition in file DeterministicESPAsyncWebServer.h.
| typedef void(* Handler) (uint8_t slot_id, HttpReq *request) |
Callback signature for HTTP request handlers.
The callback receives the connection slot index and a pointer to the fully-parsed request. Call DetWebServer::send() or DetWebServer::send_empty() from inside the callback to write a response.
| slot_id | Index into the connection pool (0 … MAX_CONNS-1). |
| request | Pointer to the parsed HTTP request. Valid only during the callback; do not cache this pointer. |
Definition at line 103 of file DeterministicESPAsyncWebServer.h.
| enum HttpMethod |
HTTP request methods supported by the router.
Pass one of these values to DetWebServer::on() to bind a route to a specific method. PATCH, HEAD, and OPTIONS were added in v1.0 alongside CORS preflight support.
Definition at line 74 of file DeterministicESPAsyncWebServer.h.
| enum RouteType |
Discriminates between HTTP, WebSocket, and SSE route entries.
| Enumerator | |
|---|---|
| ROUTE_HTTP | Standard HTTP request/response. |
Definition at line 147 of file DeterministicESPAsyncWebServer.h.