]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Update README.md
authorTom Christie <tom@tomchristie.com>
Fri, 24 May 2019 09:34:16 +0000 (10:34 +0100)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 09:34:16 +0000 (10:34 +0100)
README.md

index e64ca39a0a6055541db64a930afa77966fddb0d4..023a01a0e4cd9c9ec83c6b8a37039fafb4645010 100644 (file)
--- a/README.md
+++ b/README.md
@@ -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**