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
-
httpx
didn'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.Response
s to look likerequests.Response
s.To do so, I made a wrapper class that looks something like this:
Do you think
httpx
can officially support adapters/wrappers between the two libraries?Beta Was this translation helpful? Give feedback.
All reactions