Last active
May 3, 2024 16:30
-
-
Save luis261/2acbc79d5c8ea438860636cdbf4bce18 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def emit_debug_info(response): | |
print(f"The response was caused by requesting {response.request.url} with HTTP method {response.request.method}") | |
print(f"These were your headers: {response.request.headers}") | |
print("Below comes the body:") | |
print(response.request.body) | |
print("-" * 50) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment