Function HTTPServerContext.addVirtualHost
Adds a single virtual host.
ulong addVirtualHost
(
HTTPServerSettings settings,
@safe void delegate(HTTPServerRequest, HTTPServerResponse) request_handler
) @safe;
Note that the port and bind address defined in settings
must match the
ones for this listener. The settings
field must be unique for
all virtual hosts.
Returns
Returns a unique ID for the new virtual host