Christian Clauss
364697efca
Upgrade Python formatter ruff ( #3651 )
2025-09-03 06:17:26 -05:00
Emmanuel Ferdman
336204f012
Display proxy protocol scheme on error ( #3571 )
2025-06-02 20:29:52 +01:00
Kar Petrosyan
4189b7f051
fix typo ( #3519 )
2025-02-27 20:38:39 +04:00
Tom Christie
26d48e0634
Version 0.28.1 ( #3445 )
2024-12-06 15:35:41 +00:00
Tom Christie
89599a9541
Fix verify=False, cert=... case. ( #3442 )
2024-12-04 11:29:09 +00:00
Daniel Arvelini
15e21e9ea3
Updating deprecated docstring Client() class ( #3426 )
2024-11-29 11:15:56 +00:00
Tom Christie
80960fa319
Version 0.28.0. ( #3419 )
2024-11-28 14:50:04 +00:00
Tom Christie
a33c87852b
Fix extensions type annotation. ( #3380 )
2024-11-28 13:31:17 +00:00
Tom Christie
ce7e14da27
Error on verify as str. ( #3418 )
2024-11-28 11:46:59 +00:00
Tom Christie
47f4a96ffa
Handle empty zstd responses ( #3412 )
2024-11-22 11:42:51 +00:00
RafaelWO
7b19cd5f4b
Move utility functions from _utils.py to _client.py ( #3389 )
2024-11-15 11:42:52 +00:00
Tom Christie
2ea2286db4
Import ssl on demand ( #3401 )
2024-11-15 10:17:42 +00:00
Tom Christie
1805ee0d22
Graceful upgrade path for 0.28. ( #3394 )
2024-11-12 11:31:42 +00:00
RafaelWO
41597adffa
Move remaining utility functions from _utils.py to _models.py ( #3387 )
2024-11-01 19:20:18 +00:00
RafaelWO
6212e8fa3b
Move utility functions from _utils.py to _multipart.py ( #3388 )
2024-11-01 12:54:13 +00:00
Mayank Sinha
83a85189c7
Move normalize header functions from _utils.py to _models.py ( #3382 )
2024-10-30 17:12:21 +00:00
Tom Christie
6622553979
Cleanup Request method parameter. ( #3378 )
2024-10-29 15:31:31 +00:00
Bin Liu
12be5c44ca
add socks5h proxy support ( #3178 )
...
Signed-off-by: bin liu <liubin0329@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-10-29 14:10:33 +00:00
Joe Marshall
e9cabc8e1d
made dependencies on certifi and httpcore only load when required ( #3377 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-10-29 13:18:39 +00:00
Tom Christie
5dda2aa306
Just use default safe=... characters for urlescape ( #3376 )
2024-10-28 17:38:16 +00:00
Tom Christie
ba2e51215e
Review urlescape percent-safe set, and use + behavior for form spaces. ( #3373 )
2024-10-28 16:19:59 +00:00
Tom Christie
d293374b66
Review URL percent escaping sets, from whatwg. ( #3371 )
2024-10-28 15:06:10 +00:00
BERRADA-Omar
9fd6f0ca66
Ensure JSON representation is compact. #3363 ( #3367 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-10-28 14:40:22 +00:00
Tom Christie
8e36f2bc68
Introduce new SSLContext API & escalate deprecations. ( #3319 )
...
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
Co-authored-by: T-256 <132141463+T-256@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-10-28 14:30:08 +00:00
Tom Christie
3f76571d34
Concise URL instantiation. ( #3364 )
2024-10-25 14:27:54 +01:00
Polina Beskorovainaia
49d74a2e7f
Clarified error when header value is None ( #3312 )
...
Co-authored-by: Zanie Blue <contact@zanie.dev>
2024-09-26 18:01:47 +01:00
Tom Christie
609df7ecc0
Reintroduce URLTypes. ( #3288 )
2024-08-27 13:52:05 +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
Tom Christie
359f77d4f6
Clean up URL signature. ( #3245 )
2024-07-23 15:46:47 +01:00
Tom Christie
db9072f998
Add URL parsing tests from WHATWG ( #3188 )
...
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2024-06-13 14:46:36 +01:00
Michael Feil
92e9dfb399
Update asgi.py docstring ( #3210 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-06-06 16:36:07 +01:00
Tom Christie
37593c1952
Fast path returns for normalize_path cases ( #3189 )
...
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2024-05-17 18:25:38 +01:00
manav-a
88a81c5d31
[fix] Use proxy ssl context consistently ( #3175 )
...
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2024-05-10 06:42:50 -04:00
Tom Christie
a7092af2fd
Resolve queryparam quoting ( #3187 )
2024-05-03 01:09:08 +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
T-256
0006ed0547
format ( #3131 )
...
Co-authored-by: T-256 <Tester@test.com>
2024-03-01 19:49:23 +00:00
Kar Petrosyan
f3eb3c90fd
Keep clients in sync ( #3120 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-02-29 13:40:07 +00:00
Nick Cameron
6045186f7d
Update /advanced/#<anchor> links -> /advanced/clients/#<anchor> ( #3123 )
2024-02-28 18:13:23 +00:00
Alex
6d852d319a
Fix client.send() timeout new Request instance ( #3116 )
2024-02-26 16:36:58 +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
Kar Petrosyan
87713d2172
Define and expose the API from the same place ( #3106 )
...
* Tidy up imports
* Update tests/test_exported_members.py
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-02-23 12:30:05 +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
Kar Petrosyan
371b6e946c
Use __future__.annotations ( #3068 )
...
* Switch to new typing style
* lint
2024-01-24 14:30:22 +00:00
T-256
4f6edf36e9
test parse_header_links via public api ( #3061 )
...
* test `parse_header_links` via public api
* add no-link test
* Update tests/test_utils.py
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-01-16 10:25:02 +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
ca51b4532a
Keep clients in sync ( #3042 )
...
* Keep clients in sync
* Update httpx/_client.py
* Update httpx/_client.py
2024-01-08 15:09:14 +04:00
Kar Petrosyan
c6907c2203
Remove unused type: ignore ( #3038 )
...
* Remove unused type: ignore
* Bump mypy version
* Revert "Bump mypy version"
This reverts commit 55b44b5d2f .
* Bump mypy
---------
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-01-04 15:03:09 +00:00
Kar Petrosyan
1a660147ed
Add missing argument ( #3023 )
...
* Add missing argument
* chaneglog
* changelog
2023-12-28 16:50:43 +04:00