]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update README 0.0.1
authorTom Christie <tom@tomchristie.com>
Thu, 4 Apr 2019 17:34:17 +0000 (18:34 +0100)
committerTom Christie <tom@tomchristie.com>
Thu, 4 Apr 2019 17:34:17 +0000 (18:34 +0100)
README.md

index 20d0ffac7fd5a77531261295884a79ecdf534647..8993770d8f1d5c8d7221747ccf5ce4d4437e20b4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ assert response.status_code == 200
 assert response.body == b'Hello, world'
 ```
 
-API...
+Top-level API...
 
 ```python
 response = await httpcore.request(method, url, [headers], [body], [stream])
@@ -80,3 +80,11 @@ Explicit PoolManager...
 async with httpcore.PoolManager([ssl], [timeout], [limits]) as pool:
     response = await pool.request(method, url, [headers], [body], [stream])
 ```
+
+Streaming...
+
+```python
+response = await httpcore.request(method, url, stream=True)
+async for part in response.stream():
+    ...
+```