kitir/kits/restful_api.py
def _log_request_full(cls, response, request_file_path):
        """log the full request side of a transaction"""
        assert isinstance(response, requests.Response)
        req = response.request
        assert isinstance(req, requests.PreparedRequest)
        data = {
            'url': req.url,
            'headers': dict(req.headers),
            'method': req.method,
            'body': cls._get_body_from_req(req),
            '__meta__': 'PreparedRequest object: not Request object'
        }
        utils.write_json(request_file_path, data, json_kwargs={'indent': 4, 'sort_keys': True})
log the full request side of a transaction
log the full request side of a transaction
log the full request side of a transaction
def _log_request_full(cls, response, request_file_path):
        assert isinstance(response, requests.Response)
        req = response.request
        assert isinstance(req, requests.PreparedRequest)
        data = {
            'url': req.url,
            'headers': dict(req.headers),
            'method': req.method,
            'body': cls._get_body_from_req(req),
            '__meta__': 'PreparedRequest object: not Request object'
        }
        utils.write_json(request_file_path, data, json_kwargs={'indent': 4, 'sort_keys': True})
def _log_request_full ( cls , response , request_file_path ) : assert isinstance ( response , requests . Response ) req = response . request assert isinstance ( req , requests . PreparedRequest ) data = { 'url' : req . url , 'headers' : dict ( req . headers ) , 'method' : req . method , 'body' : cls . _get_body_from_req ( req ) , '__meta__' : 'PreparedRequest object: not Request object' } utils . write_json ( request_file_path , data , json_kwargs = { 'indent' : 4 , 'sort_keys' : True } )
log the full request side of a transaction
log the full request side of a transaction
"""log the full request side of a transaction"""
cls
response
request_file_path