Represents an HTTP server.
This class encapsulates the functionality required for creating and
managing an HTTP server, including binding to a network address,
accepting client connections, and handling client requests.
Example
// Example of creating and starting an HttpServer with a handler which returns 200 for all requests consthttpServer = newHttpServer('127.0.0.1', 8080, (req, res) => { res.status = 200; returnres; }); while(true) { httpServer.acceptNextClient(); }
Represents an HTTP server. This class encapsulates the functionality required for creating and managing an HTTP server, including binding to a network address, accepting client connections, and handling client requests.
Example