A web server using the HTTP protocol.
More...
#include <wpi/net/WebServer.hpp>
|
| | WebServer (const WebServer &)=delete |
| WebServer & | operator= (const WebServer &)=delete |
| void | Start (unsigned int port, std::string_view path) |
| | Create a web server at the given port.
|
| void | Stop (unsigned int port) |
| | Stop web server running at the given port.
|
A web server using the HTTP protocol.
◆ WebServer()
| wpi::net::WebServer::WebServer |
( |
const WebServer & | | ) |
|
|
delete |
◆ GetInstance()
| WebServer & wpi::net::WebServer::GetInstance |
( |
| ) |
|
|
static |
Get an instance of the WebServer class.
This is a singleton to guarantee that there is only a single instance regardless of how many times GetInstance is called.
◆ operator=()
◆ Start()
| void wpi::net::WebServer::Start |
( |
unsigned int | port, |
|
|
std::string_view | path ) |
Create a web server at the given port.
Note that local ports less than 1024 won't work as a normal user. Also, many ports are blocked by the FRC robot radio; check the game manual for what is allowed through the radio firewall.
- Parameters
-
| port | local port number |
| path | local path to document root |
◆ Stop()
| void wpi::net::WebServer::Stop |
( |
unsigned int | port | ) |
|
Stop web server running at the given port.
- Parameters
-
The documentation for this class was generated from the following file: