Replies: 1 comment
-
I think we should probably just keep it concise. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed enabling debug logging instructions at https://www.python-httpx.org/logging/
For the request, I only see log like this and no headers printed
DEBUG [2024-07-13 11:07:17] httpcore.http11 - send_request_headers.started request=<Request [b'POST']>
2024-07-13 11:07:17 - send_request_headers.started request=<Request [b'POST']>
DEBUG [2024-07-13 11:07:17] httpcore.http11 - send_request_headers.complete
2024-07-13 11:07:17 - send_request_headers.complete
Looking at the code, I see that request object's repr is only printing the method, as logs indicate.
https://github.com/encode/httpcore/blob/acf7d151c715d0b18870ecc660a8677f57f0bcea/httpcore/_sync/http11.py#L87C1-L96C31
httpcore/httpcore/_models.py
Line 364 in acf7d15
Simple modification seems to take care of printing headers. Is there any way to achieve this or should I raise a feature request ?
Beta Was this translation helpful? Give feedback.
All reactions