I am debugging a microcontroller I\'ve built which is writing raw HTTP requests line by line. I am using Flask for my backend and I would like to see the entire request as it a
if you're using a logger i found this useful
https://docs.python.org/3/library/pprint.html#pprint.pformat
from pprint import pformat import requests log.debug(pformat(request.headers))