httpd_uri struct Structure for URI handler
Fields Method supported by the URI, HTTP_ANY for wildcard method to support all methods.
Handler to call for supported request method. This must return ESP_OK, or else the underlying socket will be closed.
Pointer to user context data which will be available to handler.
Flag for indicating a WebSocket endpoint. If this flag is true, then method must be HTTP_GET. Otherwise the handshake will not be handled.
Flag indicating that control frames (PING, PONG, CLOSE) are also passed to the handler This is used if a custom processing of the control frames is needed.
Pointer to subprotocol supported by URI.
Examples httpd_uri is referenced by 10 libraries and example projects: