lepture / authlib

The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
https://authlib.org/
BSD 3-Clause "New" or "Revised" License
4.55k stars 452 forks source link

HTTPX: add send method #554

Open lspgn opened 1 year ago

lspgn commented 1 year ago

Hello, Thank you for this library. In some cases documented by HTTPX, when using directly the send method, the bearer token is not passed. This change adds a method with a similar signature to request and stream with an auth parameter (those two can likely be removed too).

The only thing I have not fully tested is self.ensure_active_token(self.token) as it's in a non async function.

Thank you

What kind of change does this PR introduce? (check at least one)

Does this PR introduce a breaking change? (check one)


lepture commented 1 year ago

@lspgn thanks for your work. Maybe you need to add a test case for send method.