コード例 #1
0
 def wrapper(request, callback, response, *args):
     recording.post_call_hook('HTTP', method, url, None)
     callback(response)
コード例 #2
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 def wrapper(request, callback, response, *args):
     recording.post_call_hook('HTTP', method, url, None)
     callback(response)
コード例 #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
コード例 #4
0
ファイル: allPythonContent.py プロジェクト: Mondego/pyreco
 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