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
This commit is contained in:
parent
589c6e0f2f
commit
84dca25b8e
@ -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]>
|
||||
```
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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]>
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user