Skip to content

Instantly share code, notes, and snippets.

@luis261
Last active May 3, 2024 16:30
Show Gist options
  • Save luis261/2acbc79d5c8ea438860636cdbf4bce18 to your computer and use it in GitHub Desktop.
Save luis261/2acbc79d5c8ea438860636cdbf4bce18 to your computer and use it in GitHub Desktop.
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