Tom Christie
0dd72fce4a
Make async dependencies optional.
2023-09-20 09:46:39 +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
Kieran Klukas
940d61b239
Removed curio from async.md ( #2240 )
2022-05-23 11:09:15 +02: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
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
Vibhu Agarwal
f8cb7f5f02
[Docs] Add AnyIO under "Supported async environments" ( #1673 )
...
* [Docs] Add AnyIO under "Supported async environments"
* Update docs/async.md
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Florimond Manca <15911462+florimondmanca@users.noreply.github.com>
Co-authored-by: Tom Christie <tom@tomchristie.com>
2021-06-16 07:19:39 +02:00
Jaakko Lappalainen
c1ccdbcb81
added docs for startup/shutdown of ASGI apps ( #1554 )
2021-04-05 10:55:57 +02:00
Tom Christie
89fb0cbc69
Add HTTPTransport and AsyncHTTPTransport ( #1399 )
...
* Add keepalive_expiry to Limits config
* keepalive_expiry should be optional. In line with httpcore.
* HTTPTransport and AsyncHTTPTransport
* Update docs for httpx.HTTPTransport()
* Update type hints
* Fix docs typo
* Additional mount example
* Tweak context manager methods
* Add 'httpx.HTTPTransport(proxy=...)'
* Use explicit keyword arguments throughout httpx.HTTPTransport
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2021-01-08 10:23:56 +00:00
shan7030
f4165e9e09
Add curio docs in Supported async environments ( #1437 )
...
Fixes : #1418
2020-12-25 16:57:14 +01:00
podhmo
f8f543057a
fix code example, in async.md ( #1388 )
2020-11-11 09:10:33 +00:00
Kyungmin Lee
84dca25b8e
Fix typo ( #1386 )
...
* Fix typo
three greater-than signs -> three dots
* Fix typo
three greater-than signs -> three dots
* Fix typo
three greater-than signs -> three dots
2020-11-08 10:28:38 +01:00
Hugo van Kemenade
d10b7cdc51
Use pycon for Python console code blocks ( #1187 )
...
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-08-18 15:17:44 +02:00
Florimond Manca
df24a0fc96
Add "manual streaming mode" docs ( #1046 )
...
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-07-07 14:37:12 +02:00
Alexander Pushkov
8ed6904646
Remove the UDS section from docs ( #1009 )
2020-05-30 20:43:15 +02:00
Yeray Diaz Diaz
d2816c9c48
Transport API ( #963 )
...
* Deprecate Client arg 'dispatch' and use 'transport'
* Remove line in test from coverage
* Document custom transports
* _dispatch > _transports
Also rename *Dispatch classes to *Transport and added aliases
* Fix linting issues
* Missed one _transports import
* Promote URLLib3Transport to public API
* Remove duplicate arg doc
* Assert that urllib3 is imported to use URLLib3Transport
* `AsyncClient`, not asynchronous `Client`
* Add warning category to warn calls
* Update docs/advanced.md
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
* Add warn_deprecated utility function
* Amend docs references to dispatch
* Add concrete implementation example
* Clearer transport implementation description
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-05-21 12:22:17 +01:00
Florimond Manca
53804173bb
Drop backend parameter on AsyncClient ( #791 )
...
* Drop backend parameter on AsyncClient
* Fix master merge
Co-authored-by: Tom Christie <tom@tomchristie.com>
2020-02-27 20:42:18 +00:00
Florimond Manca
6614831739
Use a base_url in app dispatcher examples ( #799 )
2020-02-03 13:05:56 +01:00
Mason Hall
b112b23152
Fix typo in async.md ( #747 )
2020-01-10 18:31:43 +01:00
Luís Gustavo
c225e95b1d
Fix typo in 'Streaming responses' docs ( #744 )
2020-01-09 12:23:33 +00:00
Tom Christie
2038919b7e
Proposed 0.11 docs ( #727 )
...
* Proposed 0.11 docs
* Add async section and link in
* Update docs/advanced.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/quickstart.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Docs updates
* Use context-managed client instances in examples
* Update README with links to docs site, rather than to .md documents
* "99% test coverage"
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
* Add Client.close method to API docs
* Update docs/async.md
Co-Authored-By: Florimond Manca <florimond.manca@gmail.com>
Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
2020-01-08 12:51:52 +00:00
Tom Christie
206c5372a6
Drop sync ( #544 )
...
Drop sync client
2019-11-27 10:43:42 +00:00
Florimond Manca
926d6cd6e4
Document when to use AsyncClient ( #534 )
...
* Document when to use AsyncClient
* Strip advice on reverting to Requests
2019-11-22 09:19:39 +01:00
nwalsh1995
f504399781
Fix link to parallel page from async page ( #440 )
2019-10-03 20:08:27 -05:00
Dustin Ingram
5df822ca11
Fix broken docs ( #415 )
...
* Fix broken link to parallel request page
* Fix incomplete code block on quickstart page
2019-09-30 20:19:53 +01:00
Florimond Manca
3496525d02
Document supported async libraries ( #387 )
...
* Document supported async libraries
* Update async.md
2019-09-26 13:43:56 +02:00
Florimond Manca
4616031202
Document + recommend async with syntax for AsyncClient ( #344 )
2019-09-15 18:29:37 +02:00
Tom Christie
2d09d5b36c
Renaming -> httpx ( #129 )
...
* Renaming -> httpx
* Renaming to httpx
2019-07-19 15:15:16 +01:00
Tom Christie
bb8697011d
Support WSGI and ASGI apps. ( #94 )
...
* Add 'Client(app=...)' support
* Add ASGI support with Client(app=app)
* Improve exc cases when using client with ASGI
* Tighten up exception handling when using as a test client
* Fix up stream I/O for WSGI/ASGI apps
* Docs for WSGI/ASGI integration
2019-06-18 15:53:33 +01:00
Tom Christie
c9747aa357
http3 ( #86 )
...
* Start fleshing out documentation
* Docs work
* http3
* Update docs
* Include lowercase status codes, for requests compat
* Updating docs
* Docs tweaks
2019-06-12 15:02:16 +01:00