A web server using the HTTP protocol.
More...
#include <wpinet/WebServer.h>
A web server using the HTTP protocol.
◆ WebServer()
wpi::WebServer::WebServer |
( |
const WebServer & | | ) |
|
|
delete |
◆ GetInstance()
static WebServer & wpi::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::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::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: