DeterministicESPAsyncWebServer 1.2.0
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
Route Struct Reference

Internal route entry stored in the routing table. More...

#include <DeterministicESPAsyncWebServer.h>

Public Attributes

char path [MAX_PATH_LEN]
 Null-terminated path pattern.
 
RouteType type
 HTTP, WS, or SSE.
 
HttpMethod method
 HTTP method (ROUTE_HTTP only).
 
Handler callback
 HTTP handler (ROUTE_HTTP only).
 
bool is_active
 false for unused table slots.
 
bool is_wildcard
 true when path ends with *.
 

Detailed Description

Internal route entry stored in the routing table.

Populated by DetWebServer::on(), on_ws(), or on_sse(). Application code does not interact with this struct directly.

Definition at line 164 of file DeterministicESPAsyncWebServer.h.

Member Data Documentation

◆ path

char Route::path[MAX_PATH_LEN]

Null-terminated path pattern.

Definition at line 166 of file DeterministicESPAsyncWebServer.h.

◆ type

RouteType Route::type

HTTP, WS, or SSE.

Definition at line 167 of file DeterministicESPAsyncWebServer.h.

Referenced by DetWebServer::on().

◆ method

HttpMethod Route::method

HTTP method (ROUTE_HTTP only).

Definition at line 168 of file DeterministicESPAsyncWebServer.h.

Referenced by DetWebServer::on().

◆ callback

Handler Route::callback

HTTP handler (ROUTE_HTTP only).

Definition at line 169 of file DeterministicESPAsyncWebServer.h.

Referenced by DetWebServer::on().

◆ is_active

bool Route::is_active

false for unused table slots.

Definition at line 188 of file DeterministicESPAsyncWebServer.h.

◆ is_wildcard

bool Route::is_wildcard

true when path ends with *.

Definition at line 189 of file DeterministicESPAsyncWebServer.h.


The documentation for this struct was generated from the following file: