ESP32 HTTPS Server: httpsserver::HTTPConnection Class Reference
Represents a single open connection for the plain HTTPServer, without TLS. More...
#include <HTTPConnection.hpp>
Public Member Functions | |
| HTTPConnection (ResourceResolver *resResolver) | |
| virtual int | initialize (int serverSocketID, HTTPHeaders *defaultHeaders) |
| virtual void | closeConnection () |
| virtual bool | isSecure () |
| virtual IPAddress | getClientIP () |
| void | loop () |
| bool | isClosed () |
| bool | isError () |
Protected Attributes | |
| unsigned long | _lastTransmissionTS |
| unsigned long | _shutdownTS |
| enum httpsserver::HTTPConnection:: { ... } | _connectionState |
| enum httpsserver::HTTPConnection:: { ... } | _clientState |
Friends | |
| class | HTTPRequest |
| class | HTTPResponse |
| class | WebsocketInputStreambuf |
Represents a single open connection for the plain HTTPServer, without TLS.
◆ getClientIP()
|
virtual |
◆ initialize()
|
virtual |
Initializes the connection from a server socket.
The call WILL BLOCK if accept(serverSocketID) blocks. So use select() to check for that in advance.
◆ isClosed()
| bool httpsserver::HTTPConnection::isClosed | ( | ) |
Returns true, if the connection has been closed.
◆ isError()
| bool httpsserver::HTTPConnection::isError | ( | ) |
Returns true, if the connection has been closed due to error
The documentation for this class was generated from the following files:
- /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPConnection.hpp
- /home/frank/Projekte/esp32/https_server/esp32_https_server/src/HTTPConnection.cpp