Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
end label
end
+ # Use default virtual host if none already responded
+ if virtual_host == null then virtual_host = factory.config.default_virtual_host
+
# Get a response from the virtual host
var response
if virtual_host != null then
# Server instance configuration
class ServerConfig
- # Virtual hosts list
+ # `VirtualHost`s served by this server
var virtual_hosts = new VirtualHosts(self)
- # TODO implement serialization or something like that
+ # Default `VirtualHost` to respond to requests not handled by any of the `virtual_hosts`
+ var default_virtual_host: nullable VirtualHost = null
end
# A `VirtualHost` configuration