class HTTP::Multiserver
- HTTP::Multiserver
- HTTP::Server
- Reference
- Object
Defined in:
http-multiserver.crConstructors
- .new(mapping : Hash(String | Regex, Server), handlers = [] of Handler, fallback_handler : Handler::HandlerProc | Nil = nil)
-
.new(mapping, handlers = [] of Handler)
Create a new Multiserver
-
.new(mapping, handlers = [] of Handler, &fallback_handler : Context -> )
Create a new Multiserver with a custom fallback_handler block
Instance Method Summary
-
#close
Close all underlying servers and then self
Instance methods inherited from class HTTP::Server
processor : HTTP::Server::RequestProcessor
processor
Constructor Detail
def self.new(mapping : Hash(String | Regex, Server), handlers = [] of Handler, fallback_handler : Handler::HandlerProc | Nil = nil)
#
Create a new Multiserver with a custom fallback_handler block