ESP32 HTTPS Server
httpsserver::HTTPSServer Class Reference

Main implementation of the HTTP Server with TLS support. Use HTTPServer for plain HTTP. More...

#include <HTTPSServer.hpp>

Inheritance diagram for httpsserver::HTTPSServer:
Collaboration diagram for httpsserver::HTTPSServer:

Public Member Functions

 HTTPSServer (SSLCert *cert, const uint16_t portHTTPS=443, const uint8_t maxConnections=4, const in_addr_t bindAddress=0)
 
- Public Member Functions inherited from httpsserver::HTTPServer
 HTTPServer (const uint16_t portHTTPS=80, const uint8_t maxConnections=8, const in_addr_t bindAddress=0)
 
uint8_t start ()
 
void stop ()
 
bool isRunning ()
 
void loop ()
 
void setDefaultHeader (std::string name, std::string value)
 
- Public Member Functions inherited from httpsserver::ResourceResolver
void registerNode (HTTPNode *node)
 
void unregisterNode (HTTPNode *node)
 
void setDefaultNode (HTTPNode *node)
 
void resolveNode (const std::string &method, const std::string &url, ResolvedResource &resolvedResource, HTTPNodeType nodeType)
 
void addMiddleware (const HTTPSMiddlewareFunction *mwFunction)
 
void removeMiddleware (const HTTPSMiddlewareFunction *mwFunction)
 
const std::vector< HTTPSMiddlewareFunction * > getMiddleware ()
 

Additional Inherited Members

- Protected Attributes inherited from httpsserver::HTTPServer
const uint16_t _port
 
const uint8_t _maxConnections
 
const in_addr_t _bindAddress
 
HTTPConnection ** _connections
 
boolean _running
 
int _socket
 
sockaddr_in _sock_addr
 
HTTPHeaders _defaultHeaders
 

Detailed Description

Main implementation of the HTTP Server with TLS support. Use HTTPServer for plain HTTP.


The documentation for this class was generated from the following files: