Update README for 0.2.0

This commit is contained in:
Tom Christie 2019-04-23 11:57:12 +01:00 committed by GitHub
parent 903a961897
commit bb3d452816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ A low-level async HTTP library.
* SSL verification. (Done)
* Proxy support. (Not done)
* HTTP/2 support. (Not done)
* Support *both* async and sync operations. (Sync will be lightweight shim on top of async. Not done.)
* Support *both* async and sync operations. (Done.)
## Motivation
@ -69,6 +69,15 @@ async for part in response.raw():
...
```
Thread-synchronous requests:
```python
http = httpcore.SyncConnectionPool()
response = http.request('GET', 'http://example.com')
assert response.status_code == 200
assert response.body == b'Hello, world'
```
## Building a Gateway Server
The level of abstraction fits in really well if you're just writing at