Adds a single virtual host.
Removes a previously added virtual host using its ID.
The local network interface IP address associated with this listener
The local port associated with this listener
Determines if any virtual hosts have been addded
Returns the TLS context associated with the listener.
Represents a single HTTP server port.
This class defines the incoming interface, port, and TLS configuration of the public server port. The public server port may differ from the local one if a reverse proxy of some kind is facing the public internet and forwards to this HTTP server.
Multiple virtual hosts can be configured to be served from the same port. Their TLS settings must be compatible and each virtual host must have a unique name.