Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Public Member Functions | |
virtual int | checkHeaders (HttpServerConnection &connection, HttpRequest &request, HttpResponse &response) |
void | shutdown (HttpServerConnection &connection) override |
Takes care to cleanup the connection. More... | |
void | setConnectionHandler (WebsocketDelegate handler) |
void | setMessageHandler (WebsocketMessageDelegate handler) |
void | setBinaryHandler (WebsocketBinaryDelegate handler) |
void | setDisconnectionHandler (WebsocketDelegate handler) |
Public Attributes | |
HttpServerConnectionBodyDelegate | onBody = nullptr |
resource wants to process the raw body data More... | |
HttpResourceDelegate | onHeadersComplete = nullptr |
headers are ready More... | |
HttpResourceDelegate | onRequestComplete = nullptr |
request is complete OR upgraded More... | |
HttpServerConnectionUpgradeDelegate | onUpgrade = nullptr |
request is upgraded and raw data is passed to it More... | |
Protected Member Functions | |
bool | onConnect () |
Protected Attributes | |
WebsocketDelegate | wsConnect = nullptr |
WebsocketMessageDelegate | wsMessage = nullptr |
WebsocketBinaryDelegate | wsBinary = nullptr |
WebsocketDelegate | wsDisconnect = nullptr |
|
overridevirtual |
Takes care to cleanup the connection.
Reimplemented from HttpResource.
|
inherited |
resource wants to process the raw body data
|
inherited |
headers are ready
|
inherited |
request is complete OR upgraded
|
inherited |
request is upgraded and raw data is passed to it