Skip to content
Discussion options

You must be logged in to vote

What I don't understand is that the Request object of the Requests library also seems to have no attribute called body

It doesn't have a body parameter in the constructor. It does have a body attribute on the instance.

(I can't find that documented, but I can see it in the source.)

HTTPX tries to be compatible with the requests package, including the use of callables for custom authentication.

"broadly compatible". You can't use requests auth classes interchangeably with httpx, no.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@max-tet
Comment options

Answer selected by lovelydinosaur
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants