]> git.ipfire.org Git - thirdparty/httpx.git/commit
Cleaner no proxy support (#1103) 1118/head
authorTom Christie <tom@tomchristie.com>
Sun, 2 Aug 2020 09:00:45 +0000 (10:00 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Aug 2020 09:00:45 +0000 (10:00 +0100)
commit682cad39ebd7468f65d9590ed68bd03f5a7f8ec8
tree10ec4a33a470eb51d42ce275d9d2b39dac1ff74a
parentf67e925f72166ac89c4ff430540173b5910ec315
Cleaner no proxy support (#1103)

* Add internal URLMatcher class

* Use URLMatcher for proxy lookups in transport_for_url

* Docstring

* Pin pytest

* Add support for no-proxies configurations

* Don't call should_not_proxy on each request

* Drop print statements

* Tweak comment

* Tweak comment on domain wildcards

* Update httpx/_utils.py

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Pull test_should_not_be_proxied cases into test_proxies_environ

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
httpx/_client.py
httpx/_utils.py
tests/client/test_proxies.py
tests/test_utils.py