* Fix typo

three greater-than signs -> three dots

* Fix typo

three greater-than signs -> three dots

* Fix typo

three greater-than signs -> three dots
This commit is contained in:
Kyungmin Lee 2020-11-08 18:28:38 +09:00 committed by GitHub
parent 589c6e0f2f
commit 84dca25b8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -43,7 +43,8 @@ _Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `p
```pycon
>>> import httpx
>>> async with httpx.AsyncClient() as client:
>>> r = await client.get('https://www.example.org/')
... r = await client.get('https://www.example.org/')
...
>>> r
<Response [200 OK]>
```

View File

@ -16,7 +16,8 @@ To make asynchronous requests, you'll need an `AsyncClient`.
```pycon
>>> async with httpx.AsyncClient() as client:
>>> r = await client.get('https://www.example.com/')
... r = await client.get('https://www.example.com/')
...
>>> r
<Response [200 OK]>
```
@ -67,8 +68,8 @@ The `AsyncClient.stream(method, url, ...)` method is an async context block.
```pycon
>>> client = httpx.AsyncClient()
>>> async with client.stream('GET', 'https://www.example.com/') as response:
>>> async for chunk in response.aiter_bytes():
>>> ...
... async for chunk in response.aiter_bytes():
... ...
```
The async response streaming methods are:

View File

@ -55,7 +55,8 @@ _Use [IPython](https://ipython.readthedocs.io/en/stable/) or Python 3.8+ with `p
```pycon
>>> import httpx
>>> async with httpx.AsyncClient() as client:
>>> r = await client.get('https://www.example.org/')
... r = await client.get('https://www.example.org/')
...
>>> r
<Response [200 OK]>
```