Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
HttpResource Class Reference
Inheritance diagram for HttpResource:
WebsocketResource WsCommandHandlerResource

Public Member Functions

virtual void shutdown (HttpServerConnection &connection)
 Takes care to cleanup the connection. More...
 

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...
 

Member Function Documentation

virtual void HttpResource::shutdown ( HttpServerConnection connection)
inlinevirtual

Takes care to cleanup the connection.

Reimplemented in WebsocketResource.

Member Data Documentation

HttpServerConnectionBodyDelegate HttpResource::onBody = nullptr

resource wants to process the raw body data

HttpResourceDelegate HttpResource::onHeadersComplete = nullptr

headers are ready

HttpResourceDelegate HttpResource::onRequestComplete = nullptr

request is complete OR upgraded

HttpServerConnectionUpgradeDelegate HttpResource::onUpgrade = nullptr

request is upgraded and raw data is passed to it