class Falcon::Middleware::Proxy

def lookup(request)

@returns [Service::Proxy]
@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