class

HTTP::Multiserver

Inherits HTTP::Server / Reference / Object

Constructors

new(mapping : Hash(String | Regex, Server), handlers = [] of Handler, fallback_handler : Handler::HandlerProc | Nil = nil)
Source
new(mapping, handlers = [] of Handler)

Create a new Multiserver

Source
new(mapping, handlers = [] of Handler, &fallback_handler : Context -> )

Create a new Multiserver with a custom fallback_handler block

Source

Instance methods

close

Close all underlying servers and then self

Source

Nested types