Tom Christie
609df7ecc0
Reintroduce URLTypes. ( #3288 )
2024-08-27 13:52:05 +01:00
Tom Christie
1d6b663433
Update CHANGELOG for 0.27.1 release date. ( #3285 )
2024-08-27 12:27:08 +01:00
Michiel W. Beijen
1bf1ba5124
Version 0.27.1 ( #3275 )
2024-08-22 16:03:23 +01:00
Tom Christie
7c0cda153d
Improve InvalidURL error message. ( #3250 )
2024-07-26 09:36:03 +01:00
Michiel W. Beijen
392dbe45f0
Add support for zstd decoding ( #3139 )
...
This adds support for zstd decoding using the python package zstandard.
This is similar to how it is implemented in urllib3. I also chose the
optional installation option httpx[zstd] to mimic the same option in
urllib3.
zstd decoding is similar to brotli, but in benchmarks it is supposed to
be even faster. The zstd compression is described in RFC 8878.
See https://github.com/encode/httpx/discussions/1986
Co-authored-by: Kamil Monicz <kamil@monicz.dev>
2024-03-21 10:17:15 +00:00
Nick Cameron
4941b40cbb
Fix broken links in docs/contributing.md and CHANGELOG.md ( #3124 )
2024-02-29 11:11:43 +00:00
Jon Finerty
4de13707ee
Use more permissible types in ASGIApp ( #3109 )
...
* Use the type.MutableMapping instead of Dict
MutableMapping is a slightly more permissible type (allowing the previous Dict type) but matches up to Starlettes tpyes
* Update CHANGELOG.md
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-02-23 13:36:45 +00:00
Tom Christie
326b9431c7
Version 0.27.0 ( #3095 )
...
* Version 0.27.0
* Update CHANGELOG.md (#3097 )
wrong year I think? I'm new to github so idk if I'm doing this right
Co-authored-by: ReadyRainFor <119354484+ReadyRainFor@users.noreply.github.com>
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Rain <119354484+Rainkenstein@users.noreply.github.com>
Co-authored-by: ReadyRainFor <119354484+ReadyRainFor@users.noreply.github.com>
2024-02-21 13:06:19 +00:00
Tom Christie
cabd1c095e
Deprecate app=... in favor of explicit WSGITransport/ASGITransport. ( #3050 )
...
* Deprecate app=... in favour of explicit WSGITransport/ASGITransport
* Linting
* Linting
* Update WSGITransport and ASGITransport docs
* Deprecate app
* Drop deprecation tests
* Add CHANGELOG
* Deprecate 'app=...' shortcut, rather than removing it.
* Update CHANGELOG
* Fix test_asgi.test_deprecated_shortcut
2024-02-02 13:29:41 +00:00
Tereza Tomcova
99cba6ac64
Fix RFC 2069 mode digest authentication ( #3045 )
...
* Fix RFC 2069 mode digest authentication
* Update CHANGELOG.md
2024-01-10 10:08:42 +00:00
Kar Petrosyan
1a660147ed
Add missing argument ( #3023 )
...
* Add missing argument
* chaneglog
* changelog
2023-12-28 16:50:43 +04:00
Kar Petrosyan
08eff926a6
Version 0.26.0 ( #3009 )
...
* Version 0.26.0
* Update changelog
* Update CHANGELOG.md
* Add `Deprecated` section
2023-12-20 14:52:22 +04:00
Kar Petrosyan
3b9060ee11
Fix environment proxies ( #2741 )
...
* Add red test
* Make the test pass
* Lint
* chanelog
---------
Co-authored-by: Karen Petrosyan <92274156+karosis88@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-12-14 14:04:04 +00:00
Tom Christie
2c51edd0c0
Update CHANGELOG.md ( #3000 )
2023-12-12 13:44:26 +00:00
Tom Christie
90538a3b46
Ensure that ASGI 'raw_path' does not include query component of URL. ( #2999 )
2023-12-11 15:45:20 +00:00
Kar Petrosyan
f8981f3d12
Add the 'proxy' parameter and deprecate 'proxies'. ( #2879 )
...
* Add the proxy parameter and deprecate proxies
* Make the Client.proxy and HTTPTransport.proxy types the same
* Update httpx/_transports/default.py
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
* Update httpx/_transports/default.py
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
* Drop unneeded noqa
* Changelog
* update documentation
* Allow None in mounts
* typos
* Update httpx/_types.py
* Changes proxies to proxy in CLI app
* Add proxy to request function
* Update CHANGELOG.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update docs/troubleshooting.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update docs/troubleshooting.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Lint
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
2023-12-11 17:55:52 +04:00
Tom Christie
b471f01d66
Allow URLs where username or password contains unescaped '@'. ( #2986 )
...
* Add test cases for userinfo in URL
* Resolve failing test cases
* Update CHANGELOG.md
* Update CHANGELOG.md
2023-12-07 10:08:14 +00:00
Kar Petrosyan
cc206cf2da
Version 0.25.2 ( #2957 )
...
* Version 0.25.2
* Update CHANGELOG.md
2023-11-24 16:33:18 +04:00
Petr Belskiy
87f39f12c9
add missing type hints to __init__(...) ( #2938 )
...
* add missing type hints to __init__
https://peps.python.org/pep-0484/
* add info to changelog
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-11-17 17:58:51 +04:00
Kar Petrosyan
c51e0466be
Add missing changelog section ( #2943 )
2023-11-17 12:48:27 +00:00
Tom Christie
fbe35add82
Tidy up headers in CHANGELOG.md ( #2925 )
2023-11-03 14:28:37 +00:00
Tom Christie
b07d4e8ce4
Version 0.25.1 ( #2923 )
2023-11-03 13:18:54 +00:00
Paul Schreiber
280a89a4d1
Support newer versions of httpcore ( #2885 )
...
* Support newer versions of httpcore
httpcore 1.0.0 was release October 6, 2023.
* Update pyproject.toml
* Update pyproject.toml
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
* Update pyproject.toml
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update CHANGELOG.md
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2023-11-02 14:41:25 +00:00
Hugo van Kemenade
7c9db49f0c
Add support for Python 3.12 ( #2854 )
...
* Add support for Python 3.12
* Bump GitHub Actions
* Remove redundant version checks
* Add CHANGELOG entry
2023-09-21 15:35:56 +01:00
xzmeng
59df8190a4
Raise ValueError on Response.encoding being set after Response.text has been accessed ( #2852 )
...
* Raise ValueError on change encoding
* Always raise ValueError for simplicity
* update CHANGELOG.md
2023-09-19 08:54:32 +01:00
Trim21
c3585a5ccf
Version 0.25.0 ( #2801 )
...
* bump
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
---------
Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-09-11 11:13:24 +01:00
Kar Petrosyan
a54ecccd5b
HTTPS proxies support ( #2845 )
...
* Add ssl_context argument to Proxy class
* Changelog
2023-09-11 10:56:01 +01:00
Kar Petrosyan
adbcd0e0e7
Change extensions type ( #2803 )
...
* Change extensions type
* Update changelog
* install httpcore from the git
* Revert "install httpcore from the git"
This reverts commit 1813c6aff1 .
* bump httpcore version
* fix requirements
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-09-11 09:29:22 +03:00
Iurii Pliner
b40c04dfa6
Drop support for Python 3.7 ( #2813 )
...
* Drop Python 3.7 support
* Fix lint
* Changelog
2023-08-09 10:02:28 +01:00
Trim21
9415af643f
Make raise_for_status chainable ( #2776 )
...
* merge upstream
* lint
* Update test_async_client.py
* update docs
* add example
* Update docs/quickstart.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update CHANGELOG.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
* Update docs/quickstart.md
Co-authored-by: Tom Christie <tom@tomchristie.com>
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-08-01 10:22:58 +01:00
Karen Petrosyan
733595037a
Add socket_options argument to httpx.HTTPTransport class ( #2716 )
...
* Add `socket_options` argument to `httpx.HTTPTransport` and `httpx.AsyncHTTPTransport` classes
* Update changelog
* Fix changelog format
* Set httpcore's minimum version to 0.17.2
* Remove SOCKET_OPTIONS import
2023-05-24 11:42:39 +03:00
Nik
a682f6f1c7
Fix exception suppression in asgi transport ( #2669 )
2023-05-21 01:17:23 +01:00
Peter Lazorchak
f9abbbbb48
Update changelog with WSGITransport SERVER_PROTOCOL fix ( #2711 )
2023-05-19 18:18:00 +01:00
epenet
fcf1bc73db
Version 0.24.1 ( #2702 )
...
* Version 0.24.1
* Update CHANGELOG.md
* Update CHANGELOG.md
2023-05-18 12:03:21 +01:00
Tom Christie
579a3f2fb8
Version 0.24.0 ( #2652 )
...
* Version 0.24.0
* Typo
* Update CHANGELOG.md
2023-04-11 11:00:02 +01:00
Tom Christie
08a557e3e2
Version 0.23.3 ( #2540 )
2023-01-04 09:39:43 +00:00
Tom Christie
2ab735849a
Version 0.23.2 ( #2510 )
...
* Version 0.23.2
* Update CHANGELOG.md
2023-01-02 11:46:22 +00:00
Tom Christie
c0e9dba320
Update CHANGELOG.md ( #2458 )
2022-11-21 13:38:53 +00:00
Tom Christie
f11eff45b7
Version 0.23.1 ( #2442 )
...
* Version 0.23.1
* Update dependencies
* Update CHANGELOG
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update CHANGELOG.md
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-11-18 12:48:32 +00:00
Tom Christie
89cdd903b2
Version 0.23.0 ( #2214 )
...
* Version 0.23.0
* Update changelog
* Update httpcore dependancy
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
2022-05-23 16:31:12 +01:00
Tom Christie
15c51b9dd5
Version 0.22.0 ( #2048 )
...
* SOCKS proxy support
* Version 0.22.0
* Link to socksio
2022-01-26 14:47:40 +00:00
Tom Christie
c6c8cb1fe2
Fix typo in change-log. ( #2018 )
...
Version was specified incorrectly.
See: https://github.com/encode/httpx/pull/2016#issuecomment-1006721639
2022-01-07 10:51:17 +00:00
Tom Christie
07f786c2f8
Version 0.21.3 ( #2017 )
2022-01-06 14:36:58 +00:00
Tom Christie
f6b76571fa
Version 0.21.2 ( #2011 )
2022-01-05 16:24:42 +00:00
Kian Meng, Ang
82ba15b521
Fix typos ( #1968 )
2021-12-14 15:04:01 +01:00
Tom Christie
716749e3fd
Version 0.21.1 ( #1941 )
2021-11-16 11:51:56 +00:00
Tom Christie
b4f60694eb
Version 0.21 release notes ( #1938 )
2021-11-15 14:35:09 +00:00
Tom Christie
35164b7a64
Version 0.20 ( #1890 )
...
* Version 0.20
* Add date to changelog
* Freeze charset-normalizer to a known version for testing consistency
2021-10-13 10:43:58 +01:00
Tom Christie
ee9250d60b
Add cli support ( #1855 )
...
* Add cli support
* Add setup.py
* Import main to 'httpx.main'
* Add 'cli' to requirements
* Add tests for command-line client
* Drop most CLI tests
* Add test_json
* Add test_redirects
* Coverage exclusion over _main.py in order to test more clearly
* Black formatting
* Add test_follow_redirects
* Add test_post, test_verbose, test_auth
* Add test_errors
* Remove test_errors
* Add test_download
* Change test_errors - perhaps the empty host header was causing the socket error?
* Update test_errors to not break socket
* Update docs
* Update version to 1.0.0.beta0
* Tweak CHANGELOG
* Fix up images in README
* Tweak images in README
* Update README
2021-09-14 09:44:43 +01:00
Florimond Manca
35de3dfeb6
Fix 0.19.0 release date in CHANGELOG ( #1811 )
2021-08-20 10:40:05 +01:00