class Falcon::Middleware::Redirect

def lookup(request)

@parameter request [Protocol::HTTP::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