This repository was archived by the owner on Sep 27, 2019. It is now read-only.
File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
- ** This work has been overtaken by the ` http3 ` project:** https://www. encode.io/http3/
2
+ ** This work has been overtaken by the ` httpx ` project:** https://github.com/ encode/httpx
3
3
4
- We now recommend using ` http3 .AsyncClient()` for async/await support with a requests-compatible API.
4
+ We now recommend using ` httpx .AsyncClient()` for async/await support with a requests-compatible API.
5
5
6
6
** Note** : Use ` ipython ` to try this from the console, since it supports ` await ` .
7
7
8
8
``` python
9
- >> > import http3
10
- >> > client = http3 .AsyncClient()
9
+ >> > import httpx
10
+ >> > client = httpx .AsyncClient()
11
11
>> > r = await client.get(' https://www.example.org/' )
12
12
>> > r.status_code
13
13
200
@@ -146,9 +146,9 @@ async def test_homepage():
146
146
147
147
## Alternatives
148
148
149
- * The [ ` http3 ` package] [ http3 ] both sync and async HTTP clients, with a requests-compatible API.
149
+ * The [ ` httpx ` package] [ httpx ] both sync and async HTTP clients, with a requests-compatible API.
150
150
* The [ ` aiohttp ` package] [ aiohttp ] provides an alternative client for making async HTTP requests.
151
151
152
152
[ issues ] : https://github.com/encode/requests-async/issues
153
153
[ aiohttp ] : https://docs.aiohttp.org/en/stable/client.html
154
- [ http3 ] : https://github.com/encode/http3
154
+ [ httpx ] : https://github.com/encode/httpx
You can’t perform that action at this time.
0 commit comments