def request(self, method, url, callback=None, retry=0, **kwargs):
        """Similar to `requests.request`, but return as NewFuture."""
        return self.pool.submit(
            self._request,
            method=method,
            url=url,
            retry=retry,
            callback=callback or self.default_callback,
            **kwargs
        )
def request ( self , method , url , callback = None , retry = 0 , ** kwargs ) : return self . pool . submit ( self . _request , method = method , url = url , retry = retry , callback = callback or self . default_callback , ** kwargs )
Similar to `requests.request`, but return as NewFuture.