class HTTP::Multiserver

Defined in:

http-multiserver.cr

Constructors

Instance Method Summary

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) #

[View source]
def self.new(mapping, handlers = [] of Handler) #

Create a new Multiserver


[View source]
def self.new(mapping, handlers = [] of Handler, &fallback_handler : Context -> ) #

Create a new Multiserver with a custom fallback_handler block


[View source]

Instance Method Detail

def close #

Close all underlying servers and then self


[View source]