Replies: 2 comments 1 reply
-
Interesting. I'm not sure if I'm in favour of this or not, but I suppose if we did want it then perhaps this'd be appropriate?...
|
Beta Was this translation helpful? Give feedback.
-
@tomchristie I recently started using httpx and just happened to notice the missing HTTP method, so this is purely a nice-to-have feature request. However, I can imagine the following scenario where this could be useful:
What do you think? The message format you proposed sounds good to me. |
Beta Was this translation helpful? Give feedback.
-
The HTTPStatusError raised by the
raise_for_status
method contains the URL but not the HTTP method in the message. It would be nice to have the HTTP method too. I would be happy to submit a PR for this.Current format
Proposed format
Beta Was this translation helpful? Give feedback.
All reactions