]> git.ipfire.org Git - thirdparty/httpx.git/commit
Add support for sync-specific or async-specific auth flows (#1217)
authorFlorimond Manca <florimond.manca@gmail.com>
Wed, 9 Sep 2020 13:37:20 +0000 (15:37 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Sep 2020 13:37:20 +0000 (14:37 +0100)
commit016e4ee210114bb97e631c0abcdbc462d2751ad5
treed0fe8462de8593d98ce48a5ae0ef3cc4d8994a48
parent15187e7c21e25bd7cc7cc6b0be51b79469a153a7
Add support for sync-specific or async-specific auth flows (#1217)

* Add support for async auth flows

* Move body logic to Auth, add sync_auth_flow, add NoAuth

* Update tests

* Stick to next() / __anext__()

* Fix undefined name errors

* Add docs

* Add unit tests for auth classes

Co-authored-by: Tom Christie <tom@tomchristie.com>
docs/advanced.md
httpx/_auth.py
httpx/_client.py
tests/client/test_auth.py
tests/test_auth.py [new file with mode: 0644]