Commit Graph

292 Commits

Author SHA1 Message Date
T-256
95a9527ed6
Add httpx-ws to third party packages. (#3325)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-09-27 16:41:16 +01:00
T-256
3849e1518f
Add httpx-socks to third party packages. (#3326) 2024-09-27 16:36:34 +01:00
Tom Christie
f06171fd5a
Revert "Removed leading $ from cli code blocks" (#3192)
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2024-09-23 00:16:32 +04:00
Tom Christie
d4961b9f8e
Add speakeasy sponsorship (#3305) 2024-09-17 11:31:15 +01:00
Shiny
fa6dac8383
Removed leading $ from cli code blocks (#3174)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-05-05 17:24:16 +01:00
Kien Dang
be56b74735
Fix doc links for making requests directly to WSGI/ASGI apps (#3186) 2024-05-02 11:07:09 +01:00
Michiel W. Beijen
4b85e6c389
Docs: fix small typos in Extensions doc (#3138)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-04-12 07:11:12 +01:00
Hugo Cachitas
5bb2ea0f4e
Update URL.__init__ signature (#3159) 2024-04-06 13:55:26 +02:00
Tom Christie
45bb65bba1
Document 'target' extension (#3160) 2024-04-06 08:30:16 +02: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
akgnah
df5345140e
fix docs basic authentication typo (#3112)
Signed-off-by: akgnah <1024@setq.me>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2024-02-23 14:33:15 +00:00
Tom Christie
3faa4a8f2e
Improve 'Custom transports' docs (#3081) 2024-02-14 11:14:02 +00:00
Tom Christie
c51af4ba52
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>
2024-02-06 11:40:35 +01: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
Richie B2B
37a2901af3
Mention NO_PROXY environment variable on Advanced Usage page (#3066)
Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2024-01-30 11:01:56 +04:00
Tom Christie
15f925336c
Drop outdated section (#3057) 2024-01-15 13:01:04 +00:00
Nyakku Shigure
d76607b112
Adding an indent to fix wrong rendering in warning block (#3056) 2024-01-15 12:30:09 +00:00
Kar Petrosyan
73e688875a
Fix sections references (#3058) 2024-01-15 11:15:31 +00:00
Tom Christie
8cd952c88f
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>
2024-01-15 09:48:56 +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
Kar Petrosyan
5f2d62096a
Fix third party package documentation link (#2902)
* Fix doc link

* Update docs/third_party_packages.md
2023-10-31 09:57:34 +03:00
Mahmoud
31a7bb381a
Delete js folder and remove extra_javascript (#2899)
* Delete js folder and remove extra_javascript

* Update mkdocs.yml

---------

Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com>
2023-10-25 10:29:20 +03:00
Kar Petrosyan
c684e9f3aa
Hishel as an alternative for "cachecontrol" and "requests-cache". (#2866)
* Add Caching section in compatibility

* typo
2023-09-28 12:30:49 -04:00
xzmeng
053bc57c37
fix a typo in docs/logging.md (#2830) 2023-08-29 11:27:23 +02: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
Kar Petrosyan
55b8669acb
Add Hishel into the Third Party Packages (#2799) 2023-07-31 16:40:10 +01:00
Zanie
18d7721c38
Use Mozilla documentation instead of httpstatuses.com for HTTP error reference (#2768) 2023-07-13 15:17:07 -05:00
Trim21
f115ce4e09
docs: upload progress (#2725)
* upload progress

* typo

* typo

* Update docs/advanced.md

* Update advanced.md

* Update docs/advanced.md

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

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
Co-authored-by: Kar Petrosyan <92274156+karosis88@users.noreply.github.com>
2023-07-13 15:55:41 +03:00
Johnny Lim
2e2949c8ea
Fix sample in quickstart.md (#2747) 2023-06-22 09:44:44 +01:00
Trond Hindenes
6d183a87e1
async recommendations (#2727)
* async recommendations

* better

* Update docs/async.md

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

* added async recommendation tweak

---------

Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-06-15 12:20:28 +03:00
Florimond Manca
859038a9e6
Add httpx-sse to Third Party Packages (#2683) 2023-04-28 08:52:16 +02:00
Tom Christie
f1157dbc41
Use standard logging style (#2547)
* Use standard logging style

* Add docs for logging

* Drop out-of-date HTTPX_LOG_LEVEL variable docs
2023-03-20 11:30:11 +00:00
Tom Christie
59914c7690
Add NetRCAuth() class. (#2535)
* NetRCAuth class

* Add docs for httpx.NetRCAuth()

* Drop failing cross-domain test for NetRCAuth()

* Update tests

* Update httpx/_auth.py

* Add tests for netrc file with no password
2023-01-12 11:27:46 +00:00
Tom Christie
57daabf673
Drop rfc3986 requirement. (#2252)
* Drop RawURL

* First pass at adding urlparse

* Update urlparse

* Add urlparse

* Add urlparse

* Unicode non-printables can be valid in IDNA hostnames

* Update _urlparse.py docstring

* Linting

* Trim away ununsed codepaths

* Tweaks for path validation depending on scheme and authority presence

* Minor cleanups

* Minor cleanups

* full_path -> raw_path, forr internal consistency

* Linting fixes

* Drop rfc3986 dependency

* Add test for #1833

* Linting

* Drop 'rfc3986' dependancy from README and docs homepage

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
2023-01-10 10:36:15 +00:00
Simon K
deb904dd15
remove chunk_size from api docs for iter_lines variants (#2464)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-11-29 15:55:38 +00:00
Ben Falk
8e5e3b871b
update requests compatibility docs on query and form params (#2461) 2022-11-25 12:05:46 +00:00
František Nesveda
a2a69e4bf7
Mention default timeout differences from Requests in compatibility docs (#2433)
I was recently migrating a project from Requests to HTTPX, and I stumbled a bit on the default socket timeouts being different between the two, which I haven't seen explicitly mentioned anywhere.

This adds a mention of those differences to the compatibility section, feel free to edit it or move it around as you choose.
2022-11-07 15:25:49 +01:00
Fred Thomsen
5af6123fff
Update docs to reflect supported python versions (#2338)
Replaces Python 3.6 references with Python 3.7.

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-08-16 17:20:35 -05:00
Florimond Manca
93de1980fa
Expand docs about retries (#2311)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-07-29 13:21:58 +01:00
Ofek Lev
9884965233
Update link to trustme (#2318) 2022-07-25 17:23:08 +08:00
Florimond Manca
3a82176f1f
Rework docs structure (#2308) 2022-07-21 08:43:18 +02:00
Florimond Manca
943a942836
Fix link to "http2 explained" (#2307) 2022-07-18 14:34:06 +02:00
Daniel Holth
aad60a4f12
add [chunk_size] for a?iter_.* methods (#2281)
```
    def iter_bytes(
        self, chunk_size: typing.Optional[int] = None
    ) -> typing.Iterator[bytes]:
```
2022-06-24 14:36:45 +01:00
Tom Christie
1c33a2854e
Make charset auto-detection optional. (#2165)
* Add Response(..., default_encoding=...)

* Add tests for Response(..., default_encoding=...)

* Add Client(..., default_encoding=...)

* Switch default encoding to 'utf-8' instead of 'autodetect'

* Make charset_normalizer an optional dependancy, not a mandatory one.

* Documentation

* Use callable for default_encoding

* Update tests for new charset autodetection API

* Update docs for new charset autodetection API

* Update requirements

* Drop charset_normalizer from requirements
2022-05-23 16:27:32 +01:00
Kieran Klukas
940d61b239
Removed curio from async.md (#2240) 2022-05-23 11:09:15 +02:00
nyuszika7h
782f507b63
docs: Fix proxy examples (#2183)
Per https://www.python-httpx.org/compatibility/#proxy-keys, there should
always be a `://` after the protocol. The given examples raise an
exception when used as-is.

Co-authored-by: Florimond Manca <florimond.manca@protonmail.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2022-05-05 13:11:18 +01:00
Ninzero
2b26412868
Clarify custom auth (#2202) 2022-05-04 11:11:53 +02:00
Johannes
781076cb63
Fix raise_for_status exception docs (#2159)
Closes #2126
2022-04-01 16:06:24 +01:00