]> git.ipfire.org Git - thirdparty/httpx.git/commit
Refactor client functionality into middleware (#268)
authorFlorimond Manca <florimond.manca@gmail.com>
Sun, 1 Sep 2019 21:01:14 +0000 (23:01 +0200)
committerGitHub <noreply@github.com>
Sun, 1 Sep 2019 21:01:14 +0000 (23:01 +0200)
commit40e6e8c99da395ccfa338b89ae412695397728b2
treeac2257b8431310e109710b48a14113723da75913
parentdb7f2d0df365daafbcc4e60fd7e96e8abc1a466e
Refactor client functionality into middleware (#268)

Co-authored-by: yeraydiazdiaz <yeraydiazdiaz@gmail.com>
* Dispatcher middlewares

* Redirect and BasicAuth dispatchers
* Remove HTTPBasicAuth and reinstate trust_env logic
* Call resolve dispatcher correctly
* Fix redirection tests
* Add basic and custom auth dispatchers
* Reinstate extracting cookies from response
* Fix linting

* Refactor middleware interface
httpx/auth.py [deleted file]
httpx/client.py
httpx/middleware.py [new file with mode: 0644]
tests/client/test_auth.py
tests/client/test_redirects.py