Tom Christie
07f786c2f8
Version 0.21.3 ( #2017 )
2022-01-06 14:36:58 +00:00
Tom Christie
b7dc0c3df6
Fix for stream uploads that subclass SyncByteStream/AsyncByteStream ( #2016 )
2022-01-06 14:06:35 +00:00
dependabot[bot]
99ba25c3c5
Bump pytest-asyncio from 0.15.1 to 0.16.0 ( #2005 )
...
Bumps [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio ) from 0.15.1 to 0.16.0.
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases )
- [Commits](https://github.com/pytest-dev/pytest-asyncio/compare/v0.15.1...v0.16.0 )
---
updated-dependencies:
- dependency-name: pytest-asyncio
dependency-type: direct:production
update-type: version-update:semver-minor
...
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>
2022-01-06 14:01:10 +00:00
Tom Christie
f6b76571fa
Version 0.21.2 ( #2011 )
2022-01-05 16:24:42 +00:00
Tom Christie
eb46c2d809
CI should just use Python 3.9, not "3.9.5" ( #2010 )
2022-01-05 16:04:56 +00:00
Tom Christie
406700317b
HTTP/2 support for tunnelled proxy cases. ( #2009 )
...
* Cap upload chunk sizes
* Use '.read' for file streaming, where possible
* Direct iteration should not apply chunk sizes
* HTTP/2 support for proxies
2022-01-05 16:01:47 +00:00
dependabot[bot]
9d543750b9
Bump mkdocs-material from 8.0.2 to 8.1.4 ( #2006 )
...
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 8.0.2 to 8.1.4.
- [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/8.0.2...8.1.4 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-minor
...
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>
2022-01-05 14:27:25 +00:00
dependabot[bot]
56fce6190a
Bump isort from 5.9.3 to 5.10.1 ( #1999 )
...
Bumps [isort](https://github.com/pycqa/isort ) from 5.9.3 to 5.10.1.
- [Release notes](https://github.com/pycqa/isort/releases )
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pycqa/isort/compare/5.9.3...5.10.1 )
---
updated-dependencies:
- dependency-name: isort
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-03 16:00:45 +00:00
dependabot[bot]
b019d6ec75
Bump twine from 3.4.2 to 3.7.1 ( #1998 )
...
Bumps [twine](https://github.com/pypa/twine ) from 3.4.2 to 3.7.1.
- [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/3.4.2...3.7.1 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-03 15:54:21 +00:00
dependabot[bot]
7b95ddf399
Bump cryptography from 3.4.8 to 36.0.1 ( #2000 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 3.4.8 to 36.0.1.
- [Release notes](https://github.com/pyca/cryptography/releases )
- [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/3.4.8...36.0.1 )
---
updated-dependencies:
- dependency-name: cryptography
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-03 13:25:59 +00:00
Mohammadreza Jafari
83c81aa9b8
Tiny refactor on _multipart.py & _main.py ( #1971 )
...
* remove unnecessary casting in f-string
* merge nested condition
2021-12-21 18:15:34 +01:00
Kian Meng, Ang
82ba15b521
Fix typos ( #1968 )
2021-12-14 15:04:01 +01:00
dependabot[bot]
3c5884eeaa
Bump mkdocs-material from 7.2.6 to 8.0.2 ( #1958 )
...
* Bump mkdocs-material from 7.2.6 to 8.0.2
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 7.2.6 to 8.0.2.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG )
- [Upgrade guide](https://github.com/squidfunk/mkdocs-material/blob/master/docs/upgrade.md )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/7.2.6...8.0.2 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update requirements.txt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-12-06 14:38:50 +00:00
dependabot[bot]
29611cf91d
Bump pytest from 6.2.4 to 6.2.5 ( #1956 )
2021-12-01 20:37:39 +00:00
dependabot[bot]
b16c5f2cef
Bump trustme from 0.8.0 to 0.9.0 ( #1955 )
2021-12-01 19:40:17 +00:00
dependabot[bot]
a6e03ca66e
Bump black from 21.10b0 to 21.11b1 ( #1954 )
2021-12-01 18:19:45 +00:00
wo0d
efc841a9e8
Fix typo on _merge_url ( #1949 )
...
seperator -> separator
2021-11-23 09:04:31 +00:00
Tom Christie
6f5865f860
Read upload files using read(CHUNK_SIZE) rather than iter(). ( #1948 )
...
* Cap upload chunk sizes
* Use '.read' for file streaming, where possible
* Direct iteration should not apply chunk sizes
2021-11-22 13:15:39 +00:00
Kevin Anderson
e232226d77
readmes/README.scn.md ( #1946 )
...
* Create README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
* Update README_chinese.md
2021-11-22 12:22:45 +00:00
Tom Christie
716749e3fd
Version 0.21.1 ( #1941 )
2021-11-16 11:51:56 +00:00
Tom Christie
4882e98049
Fix response.url annotation ( #1940 )
2021-11-16 11:47:46 +00:00
Tom Christie
b4f60694eb
Version 0.21 release notes ( #1938 )
2021-11-15 14:35:09 +00:00
Tom Christie
61188feeae
Version 0.21 ( #1935 )
...
* Integrate with httpcore 0.14
* Fix pool timeout test
* Add request extensions to API
* Add certificate and connection info to client, using 'trace' extension
* Fix test_pool_timeout flakiness
2021-11-15 14:30:54 +00:00
dependabot[bot]
c531263f42
Bump flake8-bugbear from 21.4.3 to 21.9.2 ( #1917 )
...
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear ) from 21.4.3 to 21.9.2.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases )
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/21.4.3...21.9.2 )
---
updated-dependencies:
- dependency-name: flake8-bugbear
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 11:00:30 +00:00
dependabot[bot]
35b98a9f60
Bump black from 21.9b0 to 21.10b0 ( #1921 )
...
Bumps [black](https://github.com/psf/black ) from 21.9b0 to 21.10b0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-15 10:24:12 +00:00
dependabot[bot]
9082ed91e1
Bump types-certifi from 0.1.4 to 2021.10.8.0 ( #1918 )
...
Bumps [types-certifi](https://github.com/python/typeshed ) from 0.1.4 to 2021.10.8.0.
- [Release notes](https://github.com/python/typeshed/releases )
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-certifi
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-12 13:50:39 +00:00
Tyler Chamberlain
da8f959af0
Expand docs note for async custom handler responses ( #1916 )
...
* Expand note for async custom handler responses
Custom response handlers need to run `response.read()` before they can read the content of the response. However when using an AsyncClient this will produce an error of `RuntimeError: Attempted to call a sync iterator on an async stream.`. Took me some digging to figure out I just needed to use `response.aread()` here instead of `response.read()` so figured I would an MR with an expansion on the note for anyone else.
Thanks!
* Update advanced.md
2021-11-01 11:39:18 +00:00
Adrian Garcia Badaracco
62b1666dc6
doc: Update comments about file types in _types.py ( #1898 )
...
* doc: Update comments about file types in _types.py
https://github.com/encode/httpx/discussions/1897
* Update httpx/_types.py
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-10-18 11:19:42 +01:00
dependabot[bot]
fa03b489f0
Bump flake8-pie from 0.5.0 to 0.15.0 ( #1879 )
...
* Bump flake8-pie from 0.5.0 to 0.15.0
Bumps [flake8-pie](https://github.com/sbdchd/flake8-pie ) from 0.5.0 to 0.15.0.
- [Release notes](https://github.com/sbdchd/flake8-pie/releases )
- [Commits](https://github.com/sbdchd/flake8-pie/commits )
---
updated-dependencies:
- dependency-name: flake8-pie
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Don't use PIE on 3.6
* Adhere or ignore new rules
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2021-10-15 12:03:53 +02:00
dependabot[bot]
c59be190e4
Bump black from 20.8b1 to 21.9b0 ( #1877 )
...
Bumps [black](https://github.com/psf/black ) from 20.8b1 to 21.9b0.
- [Release notes](https://github.com/psf/black/releases )
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md )
- [Commits](https://github.com/psf/black/commits )
---
updated-dependencies:
- dependency-name: black
dependency-type: direct:production
...
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>
Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
2021-10-15 11:44:37 +02:00
Tom Christie
623b0ddeea
Don't pickle request/response extensions ( #1892 )
2021-10-13 13:45:29 +01:00
dependabot[bot]
885314a364
Bump wheel from 0.36.2 to 0.37.0 ( #1878 )
...
Bumps [wheel](https://github.com/pypa/wheel ) from 0.36.2 to 0.37.0.
- [Release notes](https://github.com/pypa/wheel/releases )
- [Changelog](https://github.com/pypa/wheel/blob/main/docs/news.rst )
- [Commits](https://github.com/pypa/wheel/compare/0.36.2...0.37.0 )
---
updated-dependencies:
- dependency-name: wheel
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-13 12:02:04 +01:00
dependabot[bot]
6bc4a8d7ea
Bump coverage from 5.3 to 6.0.2 ( #1891 )
...
Bumps [coverage](https://github.com/nedbat/coveragepy ) from 5.3 to 6.0.2.
- [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/coverage-5.3...6.0.2 )
---
updated-dependencies:
- dependency-name: coverage
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-13 11:43:07 +01:00
dependabot[bot]
d591ddbe52
Bump isort from 5.9.1 to 5.9.3 ( #1881 )
...
Bumps [isort](https://github.com/pycqa/isort ) from 5.9.1 to 5.9.3.
- [Release notes](https://github.com/pycqa/isort/releases )
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md )
- [Commits](https://github.com/pycqa/isort/compare/5.9.1...5.9.3 )
---
updated-dependencies:
- dependency-name: isort
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-13 11:37:01 +01: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
Marcelo Trylesinski
deb1a2b921
Update index.md ( #1883 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-10-06 13:26:49 +01:00
Marcelo Trylesinski
2212dda7c7
Bump Python 3.10 in the CI ( #1886 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-10-06 10:13:34 +01:00
Tom Christie
1752e4d672
Run CI on 3.9.5 ( #1887 )
...
* Update test-suite.yml
* Update test-suite.yml
2021-10-06 09:46:45 +01:00
Tom Christie
e1abaf146f
Tidy up the formatting of HTTP/2 requests ( #1860 )
...
* Tidy up the formatting of HTTP/2 requests
* Black linting
2021-09-14 13:36:22 +01:00
Tom Christie
d41840e18d
Fix typo. ( #1859 )
2021-09-14 12:48:06 +01:00
Tom Christie
7e01677f0a
List 'click' and 'rich' in the project dependencies ( #1858 )
2021-09-14 10:44:07 +01:00
Tom Christie
f2992442fd
Update README.md ( #1857 )
2021-09-14 09:54:50 +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
Tom Christie
a761e17abc
is_informational / is_success / is_redirect / is_client_error / is_server_error ( #1854 )
2021-09-13 13:52:58 +01:00
Tom Christie
ff9813e84d
Transport API as plain request -> response method. ( #1840 )
...
* Responses as context managers
* timeout -> request.extensions
* Transport API -> request/response signature
* Fix top-level httpx.stream()
* Drop response context manager methods
* Simplify ASGI tests
* Black formatting
2021-09-13 13:34:46 +01:00
Tom Christie
47266d763b
Switch follow redirects default ( #1808 )
...
* Switch default on allow_redirects to False
* allow_redirects -> follow_redirects
* Update follow_redirects default in top-level API
* Update docs on follow_redirects
2021-09-13 13:21:22 +01:00
Adrian Garcia Badaracco
0b4a83257b
BUG: wsgi.error should be TextIO, not BytesIO in WSGI transport ( #1828 )
...
* wsgi.error should be StringIO, not BytesIO
Based on the documentation at https://modwsgi.readthedocs.io/en/master/user-guides/debugging-techniques.html#apache-error-log-files
* Default to sys.stderr and add test
* rename log_file param to wsgi_errors
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-09-07 15:44:35 +01:00
Robert Craigie
c24bbb85a6
Fix conditional imports for pyright ( #1839 )
2021-09-03 14:51:42 +01:00
dependabot[bot]
513a6aa067
Bump mkdocs-material from 7.1.8 to 7.2.6 ( #1835 )
...
* Bump mkdocs-material from 7.1.8 to 7.2.6
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material ) from 7.1.8 to 7.2.6.
- [Release notes](https://github.com/squidfunk/mkdocs-material/releases )
- [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/docs/changelog.md )
- [Commits](https://github.com/squidfunk/mkdocs-material/compare/7.1.8...7.2.6 )
---
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update requirements.txt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-09-03 12:26:01 +01:00
dependabot[bot]
15defd1b5e
Bump twine from 3.4.1 to 3.4.2 ( #1838 )
...
Bumps [twine](https://github.com/pypa/twine ) from 3.4.1 to 3.4.2.
- [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/3.4.1...3.4.2 )
---
updated-dependencies:
- dependency-name: twine
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-03 10:33:38 +01:00