]> git.ipfire.org Git - thirdparty/httpx.git/commit
Refactor middleware (#325)
authorFlorimond Manca <florimond.manca@gmail.com>
Sat, 7 Sep 2019 21:22:11 +0000 (23:22 +0200)
committerGitHub <noreply@github.com>
Sat, 7 Sep 2019 21:22:11 +0000 (23:22 +0200)
commit71648ece09c5507f401b91e9502083a34078036c
tree6ed3cfb5b8d9c4e51d7d47bcafa76edfc8f6fc33
parent0f34f3b60f9461fa686f5fa10c2a636a09cbaeff
Refactor middleware (#325)

* Split middleware into a subpackage

* Refactor basic auth header building

* Add encoding parameter to to_bytes()
httpx/client.py
httpx/middleware/__init__.py [new file with mode: 0644]
httpx/middleware/base.py [new file with mode: 0644]
httpx/middleware/basic_auth.py [new file with mode: 0644]
httpx/middleware/custom_auth.py [new file with mode: 0644]
httpx/middleware/redirect.py [moved from httpx/middleware.py with 74% similarity]
httpx/utils.py