You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would allow my _auth_flow function to yield additional requests that need to be made. I'd rather not create a seperate subclass of httpx.Auth because the auth flow is specific to the ApiClient. Using an instance method also lets me utilize self.client which feels much cleaner than yielding explicit httpx.Request instances in my auth flow.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like my callable auth to be able to return generators just like
httpx.Auth.auth_flow
does, like this for exampleThis would allow my
_auth_flow
function to yield additional requests that need to be made. I'd rather not create a seperate subclass ofhttpx.Auth
because the auth flow is specific to theApiClient
. Using an instance method also lets me utilizeself.client
which feels much cleaner than yielding explicithttpx.Request
instances in my auth flow.Beta Was this translation helpful? Give feedback.
All reactions