class Falcon::Middleware::Redirect
def lookup(request)
Lookup the appropriate host for the given request.
def lookup(request) # Trailing dot and port is ignored/normalized. if authority = request.authority&.sub(/(\.)?(:\d+)?$/, "") return @hosts[authority] end end