WebServer
- class wpinet.WebServer
Bases:
pybind11_objectA web server using the HTTP protocol.
- static getInstance() wpinet._wpinet.WebServer
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.
- start(port: SupportsInt | SupportsIndex, path: str) None
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(port: SupportsInt | SupportsIndex) None
Stop web server running at the given port.
- Parameters:
port – local port number