Commit Graph

1520 Commits

Author SHA1 Message Date
Raffaele Salmaso
476127697f
Allow rich 12 (#2122) 2022-03-28 12:59:07 +01:00
Florimond Manca
c5b2dd167b
Upgrade mkdocs to 1.3.0 to fix scripts/docs failure (#2147) 2022-03-28 05:46:47 +02:00
kk
c82885ac04
Fix cli docs --proxies #2124 (#2125) 2022-03-14 17:51:39 +01:00
Dan Claudiu Pop
43a1c1c826
Add robox to third party packages doc (#2113)
* Add robox to third party packages doc

* Update third_party_packages.md
2022-03-08 10:53:15 +00:00
dependabot[bot]
754b55691d
Bump flake8-bugbear from 21.9.2 to 22.1.11 (#2100)
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 21.9.2 to 22.1.11.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/21.9.2...22.1.11)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  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>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-03-04 19:07:52 +00:00
dependabot[bot]
67651f8d05
Bump pytest from 6.2.5 to 7.0.1 (#2103)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 6.2.5 to 7.0.1.
- [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/6.2.5...7.0.1)

---
updated-dependencies:
- dependency-name: pytest
  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-03-03 10:09:05 +00:00
Ben Fasoli
6820b1d9c5
Fix invalid max_keepalive_connections argument name (#2094)
The argument to `httpx.Limits` is named `max_keepalive_connections` but is referenced as `max_keepalive` in the docs.
2022-02-25 14:10:35 +00:00
Udasi Tharani
2a08edc471
adding keepalive_expiry param to docs and docstring (#2090) 2022-02-22 10:40:14 +00:00
Tom Christie
7883c98556
Create stale.yml (#2085) 2022-02-17 09:32:47 +00:00
Tom Christie
d07c4b4407
Move URL and QueryParams to new '_urls.py' module (#2084) 2022-02-16 21:02:13 +00:00
Tom Christie
2072aa2361
Docs tweaks (#2075) 2022-02-09 16:05:20 +00:00
waterfountain1996
4c307488cd
Suppress binary output on the command line (#2049) (#2076) 2022-02-09 15:40:39 +00:00
Yasser Tahiri
a416106250
Refactor httpx/_utils.py (#1943)
* Removes unnecessary call to keys() when iterating over a dictionary

* Simplify conditionals into a form like a switch statement

* Merge else clause's nested if statement into elif

* Update httpx/_utils.py

* Update httpx/_utils.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-02-09 12:12:09 +00:00
iscai-msft
7d3a5347a9
update eerror docs to use StreamClosed instead of old ResponseClosed (#1913)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-02-09 11:53:49 +00:00
waterfountain1996
4401d55ecf
Preserve Authorization header on HTTPS redirect (#1850) (#2074)
* Preserve Authorization header on HTTPS redirect (#1850)

* Update httpx/_client.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-02-09 11:18:21 +00:00
toppk
4f8068a7ad
update docstring/docs for transport using request/response models (#2070)
* update docstring/docs for transport based on pull #1840

* Update httpx/_transports/base.py

* lint'd

Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-02-08 14:58:08 +00:00
Tom Christie
420911bc69
Ensure that iter_bytes does not ever yield any zero-length chunks (#2068) 2022-02-07 09:19:26 +00:00
Tom Christie
0088253b32
Always rewind files on multipart uploads. (#2065)
* Test for multipart POST same file twice.

* Always rewind files on multipart uploads

* Linting
2022-02-04 14:48:57 +00:00
Will McGugan
2814fd379c
Fix console markup escaping issue (#1866)
* fix for markup escaping in progress

* whitespace

* restore new line

* Update _main.py

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-02-04 12:33:32 +00:00
Michał Górny
2146c75f4e
Allow rich-11 (#2057)
Relax the version bind on rich to allow v11.  There are no test
regressions with the new version, and CLI seems to work correctly.
2022-02-01 12:28:12 +00:00
Simon K
7b6af4d123
make docs accurate that content= is also excluded in some requests (#1922)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-01-27 11:58:33 +00: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
31944b90f1
Update publish.yml (#2040) 2022-01-24 12:14:00 +00:00
Vytautas Liuolia
d299e6ff59
Do not recommend the deprecated data= kwarg for passing bytes. (#2044)
(`data=` is meant for sending form data.)
2022-01-23 21:37:27 +01:00
Adrian Garcia Badaracco
321d4aa509
Fix Headers.update to correctly handle repeated headers (#2038) 2022-01-21 08:35:10 -08:00
Tom Christie
8dc9b6bd59
SOCKS proxy support (#2034) 2022-01-19 14:58:19 +00:00
Tom Christie
7f0d43daad
Dont perform implicit close/warning on __del__ (#2026)
* Version 0.21.3

* Don't perform implict close on __del__
2022-01-13 10:37:37 +00:00
Adrian Garcia Badaracco
0f1ff50a1e
Allow custom headers in multipart/form-data requests (#1936)
* feat: allow passing multipart headers

* Add test for including content-type in headers

* lint

* override content_type with headers

* compare tuples based on length

* incorporate suggestion

* remove .title() on headers
2022-01-13 08:49:14 +00:00
Denis Laxalde
3eaf69a772
Drop mention of backend selection for AsyncHTTPTransport() in docs (#2019)
There is no 'backend' parameter to AsyncHTTPTransport and it seems that
the backend is detected automatically for anyio as it is for other async
libraries.
2022-01-10 09:39:13 +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
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