VirtualHost
configurationnitcorn :: VirtualHost :: defaultinit
Create a virtual host from interfaces as stringsnitcorn :: VirtualHost :: interfaces=
Interfaces on whichself
is active
nitcorn :: VirtualHost :: routes=
Routes and thusAction
s active on self
nitcorn :: VirtualHost :: server_config
Back reference to the associated server configurationnitcorn :: VirtualHost :: server_config=
Back reference to the associated server configurationnitcorn $ VirtualHost :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitcorn :: VirtualHost :: defaultinit
Create a virtual host from interfaces as stringscore :: Object :: defaultinit
nitcorn :: VirtualHost :: interfaces=
Interfaces on whichself
is active
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).nitcorn :: VirtualHost :: routes=
Routes and thusAction
s active on self
nitcorn :: VirtualHost :: server_config
Back reference to the associated server configurationnitcorn :: VirtualHost :: server_config=
Back reference to the associated server configuration
# A `VirtualHost` configuration
class VirtualHost
# Back reference to the associated server configuration
var server_config: nullable ServerConfig = null
# Interfaces on which `self` is active
var interfaces = new Interfaces(self)
# Routes and thus `Action`s active on `self`
var routes = new Routes(self)
# Create a virtual host from interfaces as strings
init(interfaces: String ...) is old_style_init do
for i in interfaces do self.interfaces.add_from_string i
end
end
lib/nitcorn/server_config.nit:31,1--46,3