class Falcon::Middleware::Redirect
def initialize(app, hosts, endpoint)
@parameter hosts [Hash(String, Service::Proxy)] The map of hosts.
@parameter app [Protocol::HTTP::Middleware] The middleware to wrap.
Initialize the redirect middleware.
def initialize(app, hosts, endpoint) super(app) @hosts = hosts @endpoint = endpoint end