[]nitcorn :: Routes :: defaultinit
core :: Object :: class_factory
Implementation used byget_class to create the specific class.
			core :: Object :: defaultinit
nitcorn :: Routes :: defaultinit
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).
# A list of routes with the search method `[]`
class Routes
	# Back reference to the config of the virtual host
	var config: VirtualHost
	# Internal routes array.
	protected var routes = new Array[Route]
	# Add `e` to `self`
	fun add(e: Route) do routes.add e
	# Remove `e` from `self`
	fun remove(e: Route) do routes.remove e
	# Get the first `Route` than has `key` as prefix to its path
	fun [](key: String): nullable Route
	do
		for route in routes do
			var path = route.path
			if path == null or key.has_prefix(path) then return route
		end
		return null
	end
end
					lib/nitcorn/server_config.nit:118,1--141,3