(self, request)
Returns an WSGIAdaptor instance if request matches an app, or None.
Returns an WSGIAdaptor instance if request matches an app, or None.
Returns an WSGIAdaptor instance if request matches an app or None .
def get(self, request):
        """
            Returns an WSGIAdaptor instance if request matches an app, or None.
        """
        if (request.host, request.port) in self.apps:
            return self.apps[(request.host, request.port)]
        if "host" in request.headers:
            host = request.headers["host"][0]
            return self.apps.get((host, request.port), None)
def get ( self , request ) : if ( request . host , request . port ) in self . apps : return self . apps [ ( request . host , request . port ) ] if "host" in request . headers : host = request . headers [ "host" ] [ 0 ] return self . apps . get ( ( host , request . port ) , None )