Creates an instance of a HTTP server.
The IP address or hostname the server will bind to.
The port number the server will listen on.
The request handler to be used when serving requests
Protected Readonly handlerThe request handler to be used when serving requests
Protected loggerProtected serverThe underlying TCP server.
Private handleGenerated using TypeDoc
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