(
    _: Any, __: Any, event_dict: Dict[str, Any]
)
return event_dict
Structlog processor for adding more information to log events that provide
    `res` with a requests Response object.
Structlog processor for adding more information to log events that provide
    `res` with a requests Response object.
Structlog processor for adding more information to log events that provide res with a requests Response object .
def add_request_info_processor(
    _: Any, __: Any, event_dict: Dict[str, Any]
) -> Dict[str, Any]:
    """
    Structlog processor for adding more information to log events that provide
    `res` with a requests Response object.
    """
    response = event_dict.get("res", None)
    if isinstance(response, Response):
        event_dict["response_content"] = cast(Any, response)._content
        event_dict["response_status_code"] = response.status_code
        event_dict["request_body"] = response.request.body
        event_dict["request_url"] = response.request.url
        event_dict["request_method"] = response.request.method
    return event_dict
def add_request_info_processor ( _ : Any , __ : Any , event_dict : Dict [ str , Any ] ) -> Dict [ str , Any ] : response = event_dict . get ( "res" , None ) if isinstance ( response , Response ) : event_dict [ "response_content" ] = cast ( Any , response ) . _content event_dict [ "response_status_code" ] = response . status_code event_dict [ "request_body" ] = response . request . body event_dict [ "request_url" ] = response . request . url event_dict [ "request_method" ] = response . request . method return event_dict