A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://fhessel.github.io/esp32_https_server/classhttpsserver_1_1HTTPServer.html below:

ESP32 HTTPS Server: httpsserver::HTTPServer Class Reference

Main implementation for the plain HTTP server. Use HTTPSServer for TLS support. More...

#include <HTTPServer.hpp>

virtual uint8_t  setupSocket ()   virtual void  teardownSocket ()   virtual int  createConnection (int idx)   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  

Main implementation for the plain HTTP server. Use HTTPSServer for TLS support.

◆ loop() void httpsserver::HTTPServer::loop ( )

The loop method can either be called by periodical interrupt or in the main loop and handles processing of data

◆ setDefaultHeader() void httpsserver::HTTPServer::setDefaultHeader ( std::string  name, std::string  value  )

Adds a default header that is included in every response.

This could be used for example to add a Server: header or for CORS options

◆ setupSocket() uint8_t httpsserver::HTTPServer::setupSocket ( ) protectedvirtual

This method prepares the tcp server socket

◆ start() uint8_t httpsserver::HTTPServer::start ( )

This method starts the server and begins to listen on the port

◆ stop() void httpsserver::HTTPServer::stop ( )

This method stops the server

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4