def dispatch ( self , request , * args , * * kwargs ) : self . request = DownstreamRequest ( request ) self . args = args self . kwargs = kwargs self . _verify_config ( ) self . middleware = MiddlewareSet ( self . proxy_middleware ) return self . proxy ( )
tunnel request through a proxy requests python
Dispatch all HTTP methods to the proxy .
def dispatch(self, request, *args, **kwargs):
        """Dispatch all HTTP methods to the proxy."""
        self.request = DownstreamRequest(request)
        self.args = args
        self.kwargs = kwargs

        self._verify_config()

        self.middleware = MiddlewareSet(self.proxy_middleware)

        return self.proxy()