]> git.ipfire.org Git - thirdparty/httpx.git/log
thirdparty/httpx.git
11 months agoUpdate CHANGELOG.md version-0.28.2 3525/head
Tom Christie [Tue, 4 Mar 2025 11:28:56 +0000 (11:28 +0000)] 
Update CHANGELOG.md

11 months agoUpdate CHANGELOG.md
Tom Christie [Tue, 4 Mar 2025 11:27:33 +0000 (11:27 +0000)] 
Update CHANGELOG.md

11 months agoUpdate version to 0.28.2
Tom Christie [Tue, 4 Mar 2025 11:26:04 +0000 (11:26 +0000)] 
Update version to 0.28.2

Update Python package with up to date classifiers.

11 months agoAdd `httpdbg` to third party packages. (#3327)
T-256 [Thu, 27 Feb 2025 17:43:26 +0000 (21:13 +0330)] 
Add `httpdbg` to third party packages. (#3327)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
11 months agofix typo (#3519)
Kar Petrosyan [Thu, 27 Feb 2025 16:38:39 +0000 (20:38 +0400)] 
fix typo (#3519)

12 months agoSharper CHANGELOG entry. (#3448)
Tom Christie [Fri, 14 Feb 2025 14:52:54 +0000 (14:52 +0000)] 
Sharper CHANGELOG entry. (#3448)

12 months agoBump cryptography from 44.0.0 to 44.0.1 (#3499)
dependabot[bot] [Wed, 12 Feb 2025 11:25:05 +0000 (11:25 +0000)] 
Bump cryptography from 44.0.0 to 44.0.1 (#3499)

13 months agodocs: Use `with` to open files in multipart examples (#3478)
Bazyli Cyran [Fri, 17 Jan 2025 10:56:46 +0000 (11:56 +0100)] 
docs: Use `with` to open files in multipart examples (#3478)

13 months agoAdd support for Python 3.13 (#3460)
Hugo van Kemenade [Mon, 23 Dec 2024 21:50:57 +0000 (23:50 +0200)] 
Add support for Python 3.13 (#3460)

14 months agoVersion 0.28.1 (#3445) 0.28.1
Tom Christie [Fri, 6 Dec 2024 15:35:41 +0000 (15:35 +0000)] 
Version 0.28.1 (#3445)

14 months agoFix `verify=False`, `cert=...` case. (#3442)
Tom Christie [Wed, 4 Dec 2024 11:29:09 +0000 (11:29 +0000)] 
Fix `verify=False`, `cert=...` case. (#3442)

14 months agoAdd test for request params behavior changes (#3364) (#3440)
Elaina [Tue, 3 Dec 2024 16:12:27 +0000 (00:12 +0800)] 
Add test for request params behavior changes (#3364) (#3440)

Co-authored-by: Tom Christie <tom@tomchristie.com>
14 months agoBump the python-packages group with 11 updates (#3434)
dependabot[bot] [Tue, 3 Dec 2024 07:37:45 +0000 (08:37 +0100)] 
Bump the python-packages group with 11 updates (#3434)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
14 months agoUpdating deprecated docstring Client() class (#3426)
Daniel Arvelini [Fri, 29 Nov 2024 11:15:56 +0000 (08:15 -0300)] 
Updating deprecated docstring Client() class (#3426)

14 months agoVersion 0.28.0. (#3419) 0.28.0
Tom Christie [Thu, 28 Nov 2024 14:50:04 +0000 (14:50 +0000)] 
Version 0.28.0. (#3419)

14 months agoFix `extensions` type annotation. (#3380)
Tom Christie [Thu, 28 Nov 2024 13:31:17 +0000 (13:31 +0000)] 
Fix `extensions` type annotation. (#3380)

14 months agoError on verify as str. (#3418)
Tom Christie [Thu, 28 Nov 2024 11:46:59 +0000 (11:46 +0000)] 
Error on verify as str. (#3418)

14 months agoHandle empty zstd responses (#3412)
Tom Christie [Fri, 22 Nov 2024 11:42:51 +0000 (11:42 +0000)] 
Handle empty zstd responses (#3412)

14 months agoUpdate CHANGELOG.md, fix typo(s) (#3406)
Bob Conan [Wed, 20 Nov 2024 12:27:29 +0000 (06:27 -0600)] 
Update CHANGELOG.md, fix typo(s) (#3406)

15 months agoMove utility functions from _utils.py to _client.py (#3389)
RafaelWO [Fri, 15 Nov 2024 11:42:52 +0000 (12:42 +0100)] 
Move utility functions from _utils.py to _client.py (#3389)

15 months agoAvoid private imports in test cases. (#3403)
Tom Christie [Fri, 15 Nov 2024 10:26:56 +0000 (10:26 +0000)] 
Avoid private imports in test cases. (#3403)

15 months agoImport ssl on demand (#3401)
Tom Christie [Fri, 15 Nov 2024 10:17:42 +0000 (10:17 +0000)] 
Import ssl on demand (#3401)

15 months agoGraceful upgrade path for 0.28. (#3394)
Tom Christie [Tue, 12 Nov 2024 11:31:42 +0000 (11:31 +0000)] 
Graceful upgrade path for 0.28. (#3394)

15 months agoMove remaining utility functions from _utils.py to _models.py (#3387)
RafaelWO [Fri, 1 Nov 2024 19:20:18 +0000 (20:20 +0100)] 
Move remaining utility functions from _utils.py to _models.py  (#3387)

15 months agoMove utility functions from _utils.py to _multipart.py (#3388)
RafaelWO [Fri, 1 Nov 2024 12:54:13 +0000 (13:54 +0100)] 
Move utility functions from _utils.py to _multipart.py (#3388)

15 months agoMove normalize header functions from _utils.py to _models.py (#3382)
Mayank Sinha [Wed, 30 Oct 2024 17:12:21 +0000 (22:42 +0530)] 
Move normalize header functions from _utils.py to _models.py (#3382)

15 months agoCleanup `Request` method parameter. (#3378)
Tom Christie [Tue, 29 Oct 2024 15:31:31 +0000 (15:31 +0000)] 
Cleanup `Request` method parameter. (#3378)

15 months agoadd socks5h proxy support (#3178)
Bin Liu [Tue, 29 Oct 2024 14:10:33 +0000 (22:10 +0800)] 
add socks5h proxy support (#3178)

Signed-off-by: bin liu <liubin0329@gmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
15 months agomade dependencies on certifi and httpcore only load when required (#3377)
Joe Marshall [Tue, 29 Oct 2024 13:18:39 +0000 (13:18 +0000)] 
made dependencies on certifi and httpcore only load when required (#3377)

Co-authored-by: Tom Christie <tom@tomchristie.com>
15 months agoCleanup unneccessary test case (#3375)
Tom Christie [Mon, 28 Oct 2024 17:38:33 +0000 (17:38 +0000)] 
Cleanup unneccessary test case (#3375)

15 months agoJust use default `safe=...` characters for `urlescape` (#3376)
Tom Christie [Mon, 28 Oct 2024 17:38:16 +0000 (17:38 +0000)] 
Just use default `safe=...` characters for `urlescape` (#3376)

15 months agoUpdate CHANGELOG.md (#3374)
Tom Christie [Mon, 28 Oct 2024 16:23:45 +0000 (16:23 +0000)] 
Update CHANGELOG.md (#3374)

15 months agoReview urlescape percent-safe set, and use + behavior for form spaces. (#3373)
Tom Christie [Mon, 28 Oct 2024 16:19:59 +0000 (16:19 +0000)] 
Review urlescape percent-safe set, and use + behavior for form spaces. (#3373)

15 months agoReview URL percent escaping sets, from whatwg. (#3371)
Tom Christie [Mon, 28 Oct 2024 15:06:10 +0000 (15:06 +0000)] 
Review URL percent escaping sets, from whatwg. (#3371)

15 months agoUpdate CHANGELOG.md (#3372)
Tom Christie [Mon, 28 Oct 2024 14:43:24 +0000 (14:43 +0000)] 
Update CHANGELOG.md (#3372)

15 months agoEnsure JSON representation is compact. #3363 (#3367)
BERRADA-Omar [Mon, 28 Oct 2024 14:40:22 +0000 (15:40 +0100)] 
Ensure JSON representation is compact. #3363 (#3367)

Co-authored-by: Tom Christie <tom@tomchristie.com>
15 months agoIntroduce new `SSLContext` API & escalate deprecations. (#3319)
Tom Christie [Mon, 28 Oct 2024 14:30:08 +0000 (14:30 +0000)] 
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>
15 months agoConcise URL instantiation. (#3364)
Tom Christie [Fri, 25 Oct 2024 13:27:54 +0000 (14:27 +0100)] 
Concise URL instantiation. (#3364)

15 months agotypo: Reading a response expose response text, not request text (#3359)
Colin Bounouar [Wed, 23 Oct 2024 19:06:45 +0000 (21:06 +0200)] 
typo: Reading a response expose response text, not request text (#3359)

16 months agoBump the python-packages group with 5 updates (#3329)
dependabot[bot] [Tue, 1 Oct 2024 17:05:20 +0000 (18:05 +0100)] 
Bump the python-packages group with 5 updates (#3329)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
16 months agoAdd `httpx-ws` to third party packages. (#3325)
T-256 [Fri, 27 Sep 2024 15:41:16 +0000 (19:11 +0330)] 
Add `httpx-ws` to third party packages. (#3325)

Co-authored-by: Tom Christie <tom@tomchristie.com>
16 months agoAdd `httpx-socks` to third party packages. (#3326)
T-256 [Fri, 27 Sep 2024 15:36:34 +0000 (19:06 +0330)] 
Add `httpx-socks` to third party packages. (#3326)

16 months agoClarified error when header value is None (#3312)
Polina Beskorovainaia [Thu, 26 Sep 2024 17:01:47 +0000 (20:01 +0300)] 
Clarified error when header value is None (#3312)

Co-authored-by: Zanie Blue <contact@zanie.dev>
16 months agoEnable TestSuite for PRs to version branches. (#3318)
Tom Christie [Tue, 24 Sep 2024 16:21:56 +0000 (17:21 +0100)] 
Enable TestSuite for PRs to version branches. (#3318)

16 months agoRevert "Removed leading $ from cli code blocks" (#3192)
Tom Christie [Sun, 22 Sep 2024 20:16:32 +0000 (21:16 +0100)] 
Revert "Removed leading $ from cli code blocks" (#3192)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
17 months agoAdd speakeasy sponsorship (#3305)
Tom Christie [Tue, 17 Sep 2024 10:31:15 +0000 (11:31 +0100)] 
Add speakeasy sponsorship (#3305)

17 months agoBump cryptography from 43.0.0 to 43.0.1 (#3295)
dependabot[bot] [Wed, 4 Sep 2024 12:24:25 +0000 (13:24 +0100)] 
Bump cryptography from 43.0.0 to 43.0.1 (#3295)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
17 months agoBump the python-packages group across 1 directory with 8 updates (#3292)
dependabot[bot] [Sun, 1 Sep 2024 17:45:24 +0000 (18:45 +0100)] 
Bump the python-packages group across 1 directory with 8 updates (#3292)

17 months agoReintroduce `URLTypes`. (#3288) 0.27.2
Tom Christie [Tue, 27 Aug 2024 12:52:05 +0000 (13:52 +0100)] 
Reintroduce `URLTypes`. (#3288)

17 months agoUpdate CHANGELOG for 0.27.1 release date. (#3285) 0.27.1
Tom Christie [Tue, 27 Aug 2024 11:27:08 +0000 (12:27 +0100)] 
Update CHANGELOG for 0.27.1 release date. (#3285)

17 months agoVersion 0.27.1 (#3275)
Michiel W. Beijen [Thu, 22 Aug 2024 15:03:23 +0000 (17:03 +0200)] 
Version 0.27.1 (#3275)

18 months agoImprove InvalidURL error message. (#3250)
Tom Christie [Fri, 26 Jul 2024 08:36:03 +0000 (09:36 +0100)] 
Improve InvalidURL error message. (#3250)

18 months agoBump the python-packages group across 1 directory with 8 updates (#3247)
dependabot[bot] [Tue, 23 Jul 2024 14:54:34 +0000 (15:54 +0100)] 
Bump the python-packages group across 1 directory with 8 updates (#3247)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
18 months agoClean up URL signature. (#3245)
Tom Christie [Tue, 23 Jul 2024 14:46:47 +0000 (15:46 +0100)] 
Clean up URL signature. (#3245)

18 months agoUpdate requirements.txt (#3246)
Tom Christie [Tue, 23 Jul 2024 14:43:47 +0000 (15:43 +0100)] 
Update requirements.txt (#3246)

20 months agoAdd URL parsing tests from WHATWG (#3188)
Tom Christie [Thu, 13 Jun 2024 13:46:36 +0000 (14:46 +0100)] 
Add URL parsing tests from WHATWG (#3188)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
20 months agoUpdate asgi.py docstring (#3210)
Michael Feil [Thu, 6 Jun 2024 15:36:07 +0000 (08:36 -0700)] 
Update asgi.py docstring (#3210)

Co-authored-by: Tom Christie <tom@tomchristie.com>
20 months agoBump the python-packages group with 8 updates (#3213)
dependabot[bot] [Mon, 3 Jun 2024 10:38:14 +0000 (11:38 +0100)] 
Bump the python-packages group with 8 updates (#3213)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
21 months agoFast path returns for normalize_path cases (#3189)
Tom Christie [Fri, 17 May 2024 17:25:38 +0000 (18:25 +0100)] 
Fast path returns for normalize_path cases (#3189)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
21 months ago[fix] Use proxy ssl context consistently (#3175)
manav-a [Fri, 10 May 2024 10:42:50 +0000 (03:42 -0700)] 
[fix] Use proxy ssl context consistently (#3175)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
21 months agoRemoved leading $ from cli code blocks (#3174)
Shiny [Sun, 5 May 2024 16:24:16 +0000 (00:24 +0800)] 
Removed leading $ from cli code blocks (#3174)

Co-authored-by: Tom Christie <tom@tomchristie.com>
21 months agoResolve queryparam quoting (#3187)
Tom Christie [Fri, 3 May 2024 00:09:08 +0000 (01:09 +0100)] 
Resolve queryparam quoting (#3187)

21 months agoFix doc links for making requests directly to WSGI/ASGI apps (#3186)
Kien Dang [Thu, 2 May 2024 10:07:09 +0000 (18:07 +0800)] 
Fix doc links for making requests directly to WSGI/ASGI apps (#3186)

21 months agoBump the python-packages group with 6 updates (#3185)
dependabot[bot] [Wed, 1 May 2024 16:56:17 +0000 (17:56 +0100)] 
Bump the python-packages group with 6 updates (#3185)

22 months agoDocs: fix small typos in Extensions doc (#3138)
Michiel W. Beijen [Fri, 12 Apr 2024 06:11:12 +0000 (08:11 +0200)] 
Docs: fix small typos in Extensions doc (#3138)

Co-authored-by: Tom Christie <tom@tomchristie.com>
22 months agoBump the python-packages group with 8 updates (#3156)
dependabot[bot] [Tue, 9 Apr 2024 20:38:43 +0000 (21:38 +0100)] 
Bump the python-packages group with 8 updates (#3156)

22 months agoUpdate URL.__init__ signature (#3159)
Hugo Cachitas [Sat, 6 Apr 2024 11:55:26 +0000 (12:55 +0100)] 
Update URL.__init__ signature (#3159)

22 months agoDocument 'target' extension (#3160)
Tom Christie [Sat, 6 Apr 2024 06:30:16 +0000 (08:30 +0200)] 
Document 'target' extension (#3160)

22 months agoAdd support for zstd decoding (#3139)
Michiel W. Beijen [Thu, 21 Mar 2024 10:17:15 +0000 (11:17 +0100)] 
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>
23 months agoBump the python-packages group with 8 updates (#3129) 2894/head
dependabot[bot] [Fri, 1 Mar 2024 20:05:55 +0000 (20:05 +0000)] 
Bump the python-packages group with 8 updates (#3129)

Bumps the python-packages group with 8 updates:

| Package | From | To |
| --- | --- | --- |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.6` | `9.5.12` |
| [build](https://github.com/pypa/build) | `1.0.3` | `1.1.1` |
| [twine](https://github.com/pypa/twine) | `4.0.2` | `5.0.0` |
| [coverage[toml]](https://github.com/nedbat/coveragepy) | `7.4.1` | `7.4.3` |
| [cryptography](https://github.com/pyca/cryptography) | `42.0.4` | `42.0.5` |
| [pytest](https://github.com/pytest-dev/pytest) | `8.0.0` | `8.0.2` |
| [ruff](https://github.com/astral-sh/ruff) | `0.1.15` | `0.3.0` |
| [uvicorn](https://github.com/encode/uvicorn) | `0.27.0.post1` | `0.27.1` |

Updates `mkdocs-material` from 9.5.6 to 9.5.12
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.6...9.5.12)

Updates `build` from 1.0.3 to 1.1.1
- [Release notes](https://github.com/pypa/build/releases)
- [Changelog](https://github.com/pypa/build/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pypa/build/compare/1.0.3...1.1.1)

Updates `twine` from 4.0.2 to 5.0.0
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/4.0.2...5.0.0)

Updates `coverage[toml]` from 7.4.1 to 7.4.3
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.4.1...7.4.3)

Updates `cryptography` from 42.0.4 to 42.0.5
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.4...42.0.5)

Updates `pytest` from 8.0.0 to 8.0.2
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.0.0...8.0.2)

Updates `ruff` from 0.1.15 to 0.3.0
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.15...v0.3.0)

Updates `uvicorn` from 0.27.0.post1 to 0.27.1
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/uvicorn/compare/0.27.0.post1...0.27.1)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: build
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: twine
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: coverage[toml]
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: uvicorn
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
23 months agoformat (#3131)
T-256 [Fri, 1 Mar 2024 19:49:23 +0000 (23:19 +0330)] 
format (#3131)

Co-authored-by: T-256 <Tester@test.com>
23 months agoKeep clients in sync (#3120)
Kar Petrosyan [Thu, 29 Feb 2024 13:40:07 +0000 (08:40 -0500)] 
Keep clients in sync (#3120)

Co-authored-by: Tom Christie <tom@tomchristie.com>
23 months agoDelete `README_chinese.md` (#3122)
Tom Christie [Thu, 29 Feb 2024 11:42:17 +0000 (11:42 +0000)] 
Delete `README_chinese.md` (#3122)

Discussed in https://github.com/encode/httpx/discussions/3024

Having translated versions for our users is friendly, but we're not doing this in a consistent way.

23 months agoFix broken links in docs/contributing.md and CHANGELOG.md (#3124)
Nick Cameron [Thu, 29 Feb 2024 11:11:43 +0000 (06:11 -0500)] 
Fix broken links in docs/contributing.md and CHANGELOG.md (#3124)

23 months agoUpdate /advanced/#<anchor> links -> /advanced/clients/#<anchor> (#3123)
Nick Cameron [Wed, 28 Feb 2024 18:13:23 +0000 (13:13 -0500)] 
Update /advanced/#<anchor> links -> /advanced/clients/#<anchor> (#3123)

23 months agoFix client.send() timeout new Request instance (#3116)
Alex [Mon, 26 Feb 2024 16:36:58 +0000 (17:36 +0100)] 
Fix client.send() timeout new Request instance (#3116)

23 months agofix docs basic authentication typo (#3112)
akgnah [Fri, 23 Feb 2024 14:33:15 +0000 (22:33 +0800)] 
fix docs basic authentication typo (#3112)

Signed-off-by: akgnah <1024@setq.me>
Co-authored-by: Tom Christie <tom@tomchristie.com>
23 months agotest `same_origin` via public api (#3062)
T-256 [Fri, 23 Feb 2024 14:16:03 +0000 (17:46 +0330)] 
test `same_origin` via public api (#3062)

Co-authored-by: Tom Christie <tom@tomchristie.com>
23 months agotest `is_https_redirect` via public api (#3064)
T-256 [Fri, 23 Feb 2024 14:11:43 +0000 (17:41 +0330)] 
test `is_https_redirect` via public api (#3064)

* test `is_https_redirect` via public api

* Update tests/test_utils.py

23 months agoUse more permissible types in ASGIApp (#3109)
Jon Finerty [Fri, 23 Feb 2024 13:36:45 +0000 (13:36 +0000)] 
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>
23 months agoDefine and expose the API from the same place (#3106)
Kar Petrosyan [Fri, 23 Feb 2024 12:30:05 +0000 (16:30 +0400)] 
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>
23 months agoBump cryptography from 42.0.2 to 42.0.4 (#3107)
dependabot[bot] [Thu, 22 Feb 2024 14:52:20 +0000 (14:52 +0000)] 
Bump cryptography from 42.0.2 to 42.0.4 (#3107)

Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.2 to 42.0.4.
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/42.0.2...42.0.4)

---
updated-dependencies:
- dependency-name: cryptography
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
23 months agoVersion 0.27.0 (#3095) 0.27.0
Tom Christie [Wed, 21 Feb 2024 13:06:19 +0000 (13:06 +0000)] 
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>
2 years agoImprove 'Custom transports' docs (#3081)
Tom Christie [Wed, 14 Feb 2024 11:14:02 +0000 (11:14 +0000)] 
Improve 'Custom transports' docs (#3081)

2 years agoExtensions docs (#3080)
Tom Christie [Tue, 6 Feb 2024 10:40:35 +0000 (11:40 +0100)] 
Extensions docs (#3080)

* 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

* Extensions docs

* Include 'extensions' in docs index

* Update docs/advanced/extensions.md

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
---------

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2 years agoDeprecate `app=...` in favor of explicit `WSGITransport`/`ASGITransport`. (#3050)
Tom Christie [Fri, 2 Feb 2024 13:29:41 +0000 (13:29 +0000)] 
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

2 years agoBump the python-packages group with 6 updates (#3077)
dependabot[bot] [Thu, 1 Feb 2024 16:19:47 +0000 (16:19 +0000)] 
Bump the python-packages group with 6 updates (#3077)

Bumps the python-packages group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [mkdocs-material](https://github.com/squidfunk/mkdocs-material) | `9.5.3` | `9.5.6` |
| [coverage[toml]](https://github.com/nedbat/coveragepy) | `7.4.0` | `7.4.1` |
| [cryptography](https://github.com/pyca/cryptography) | `41.0.7` | `42.0.2` |
| [pytest](https://github.com/pytest-dev/pytest) | `7.4.4` | `8.0.0` |
| [ruff](https://github.com/astral-sh/ruff) | `0.1.13` | `0.1.15` |
| [uvicorn](https://github.com/encode/uvicorn) | `0.25.0` | `0.27.0.post1` |

Updates `mkdocs-material` from 9.5.3 to 9.5.6
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases)
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG)
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/9.5.3...9.5.6)

Updates `coverage[toml]` from 7.4.0 to 7.4.1
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.4.0...7.4.1)

Updates `cryptography` from 41.0.7 to 42.0.2
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/41.0.7...42.0.2)

Updates `pytest` from 7.4.4 to 8.0.0
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.4...8.0.0)

Updates `ruff` from 0.1.13 to 0.1.15
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.13...v0.1.15)

Updates `uvicorn` from 0.25.0 to 0.27.0.post1
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/uvicorn/compare/0.25.0...0.27.0.post1)

---
updated-dependencies:
- dependency-name: mkdocs-material
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: coverage[toml]
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: cryptography
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: pytest
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python-packages
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: uvicorn
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years agoMention NO_PROXY environment variable on Advanced Usage page (#3066)
Richie B2B [Tue, 30 Jan 2024 07:01:56 +0000 (08:01 +0100)] 
Mention NO_PROXY environment variable on Advanced Usage page (#3066)

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2 years agoUse `__future__.annotations` (#3068)
Kar Petrosyan [Wed, 24 Jan 2024 14:30:22 +0000 (06:30 -0800)] 
Use `__future__.annotations` (#3068)

* Switch to new typing style

* lint

2 years agotest `parse_header_links` via public api (#3061)
T-256 [Tue, 16 Jan 2024 10:25:02 +0000 (13:55 +0330)] 
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>
2 years agotest `obfuscate_sensitive_headers` via public api (#3063)
T-256 [Tue, 16 Jan 2024 09:53:23 +0000 (13:23 +0330)] 
test `obfuscate_sensitive_headers` via public api (#3063)

2 years agoDrop outdated section (#3057)
Tom Christie [Mon, 15 Jan 2024 13:01:04 +0000 (13:01 +0000)] 
Drop outdated section (#3057)

2 years agoAdding an indent to fix wrong rendering in warning block (#3056)
Nyakku Shigure [Mon, 15 Jan 2024 12:30:09 +0000 (20:30 +0800)] 
Adding an indent to fix wrong rendering in warning block (#3056)

2 years agoFix sections references (#3058)
Kar Petrosyan [Mon, 15 Jan 2024 11:15:31 +0000 (15:15 +0400)] 
Fix sections references (#3058)

2 years agoBump the python-packages group with 3 updates (#3055)
dependabot[bot] [Mon, 15 Jan 2024 10:04:09 +0000 (10:04 +0000)] 
Bump the python-packages group with 3 updates (#3055)

Bumps the python-packages group with 3 updates: [ruff](https://github.com/astral-sh/ruff), [trio](https://github.com/python-trio/trio) and [uvicorn](https://github.com/encode/uvicorn).

Updates `ruff` from 0.1.9 to 0.1.13
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/v0.1.9...v0.1.13)

Updates `trio` from 0.22.2 to 0.24.0
- [Release notes](https://github.com/python-trio/trio/releases)
- [Commits](https://github.com/python-trio/trio/compare/v0.22.2...v0.24.0)

Updates `uvicorn` from 0.24.0.post1 to 0.25.0
- [Release notes](https://github.com/encode/uvicorn/releases)
- [Changelog](https://github.com/encode/uvicorn/blob/master/CHANGELOG.md)
- [Commits](https://github.com/encode/uvicorn/compare/0.24.0.post1...0.25.0)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python-packages
- dependency-name: trio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
- dependency-name: uvicorn
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python-packages
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2 years agoDocs restructuring. (#3049)
Tom Christie [Mon, 15 Jan 2024 09:48:56 +0000 (09:48 +0000)] 
Docs restructuring. (#3049)

* Tweak docs layout

* Move client docs into folder

* Add clients/authentication section

* Client authentication docs

* Fix authentication example

* SSL Context

* Timeouts

* Event hooks

* Proxies, Transports

* Text encodings

* Resource limits

* 'Clients' -> 'Advanced'

* 'Clients' -> 'Advanced'

* Add client docs

---------

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2 years agoGroup dependencies on dependabot updates (#3054)
Marcelo Trylesinski [Fri, 12 Jan 2024 18:48:03 +0000 (19:48 +0100)] 
Group dependencies on dependabot updates (#3054)

2 years agoFix RFC 2069 mode digest authentication (#3045)
Tereza Tomcova [Wed, 10 Jan 2024 10:08:42 +0000 (11:08 +0100)] 
Fix RFC 2069 mode digest authentication (#3045)

* Fix RFC 2069 mode digest authentication

* Update CHANGELOG.md

2 years agoKeep clients in sync (#3042)
Kar Petrosyan [Mon, 8 Jan 2024 11:09:14 +0000 (15:09 +0400)] 
Keep clients in sync (#3042)

* Keep clients in sync

* Update httpx/_client.py

* Update httpx/_client.py

2 years agoRemove unused type: ignore (#3038)
Kar Petrosyan [Thu, 4 Jan 2024 15:03:09 +0000 (19:03 +0400)] 
Remove unused type: ignore (#3038)

* Remove unused type: ignore

* Bump mypy version

* Revert "Bump mypy version"

This reverts commit 55b44b5d2f6f6b6417c197c653a43e3db3bf8804.

* Bump mypy

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>