Request: making requests adapters #3228
Unanswered
jamesbraza
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
httpxdidn't maintain compatibility withrequests, which is fine most of the time.However sometimes when a third party library assumes
requests-style interfaces (e.g. googleapis/google-resumable-media-python#440), it's nice to be able to maskhttpx.Responses to look likerequests.Responses.To do so, I made a wrapper class that looks something like this:
Do you think
httpxcan officially support adapters/wrappers between the two libraries?Beta Was this translation helpful? Give feedback.
All reactions