Update README.md

This commit is contained in:
Tom Christie 2019-05-24 10:34:16 +01:00 committed by GitHub
parent c12c271276
commit e7cd76ecac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ Alternatively, async requests:
>>> client = httpcore.AsyncClient()
>>> response = await client.get('https://example.com')
>>> response.status_code
<HTTPStatus.OK: 200>
<StatusCode.OK: 200>
>>> response.protocol
'HTTP/2'
>>> response.text
@ -115,7 +115,7 @@ inspiration around the lower level networking details.
*An HTTP response.*
* `def __init__(...)`
* `.status_code` - **int**
* `.status_code` - **int** (Usually an instance of the `StatusCode` IntEnum.)
* `.reason_phrase` - **str**
* `.protocol` - `"HTTP/2"` or `"HTTP/1.1"`
* `.url` - **URL**