ESP32 HTTPS Server
|
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.
|
virtual |
Returns the client's IPv4
Implements httpsserver::ConnectionContext.
|
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.
bool httpsserver::HTTPConnection::isClosed | ( | ) |
Returns true, if the connection has been closed.
bool httpsserver::HTTPConnection::isError | ( | ) |
Returns true, if the connection has been closed due to error