Beispiel #1
0
 def wrapper(request, callback, response, *args):
     recording.post_call_hook('HTTP', method, url, None)
     callback(response)
Beispiel #2
0
 def wrapper(request, callback, response, *args):
     recording.post_call_hook('HTTP', method, url, None)
     callback(response)
Beispiel #3
0
 def fetch(self, request, *args, **kwargs):
     method, url = _request_info(request)
     recording.pre_call_hook('HTTP', method, url, None)
     response = super(HTTPClient, self).fetch(request, *args, **kwargs)
     recording.post_call_hook('HTTP', method, url, None)
     return response
Beispiel #4
0
 def fetch(self, request, *args, **kwargs):
     method, url = _request_info(request)
     recording.pre_call_hook('HTTP', method, url, None)
     response = super(HTTPClient, self).fetch(request, *args, **kwargs)
     recording.post_call_hook('HTTP', method, url, None)
     return response