class Falcon::Middleware::Redirect

def initialize(app, hosts, endpoint)

@parameter endpoint [Endpoint] The template endpoint to use to build the redirect location.
@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