]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Minor README tweak
authorTom Christie <tom@tomchristie.com>
Mon, 13 May 2019 13:42:06 +0000 (14:42 +0100)
committerTom Christie <tom@tomchristie.com>
Mon, 13 May 2019 13:42:06 +0000 (14:42 +0100)
README.md

index 186a4e8de2d708bd2fcdc556787cd8458b96e66e..2893539116eea3e19396e5bc3c42e30e0e5bb7d7 100644 (file)
--- a/README.md
+++ b/README.md
@@ -45,7 +45,7 @@ Making a request:
 >>> client = httpcore.Client()
 >>> response = client.get('https://example.com')
 >>> response.status_code
-<StatusCode.ok: 200>
+<HTTPStatus.OK: 200>
 >>> response.protocol
 'HTTP/2'
 >>> response.text
@@ -61,7 +61,7 @@ Alternatively, async requests:
 >>> client = httpcore.AsyncClient()
 >>> response = await client.get('https://example.com')
 >>> response.status_code
-<StatusCode.ok: 200>
+<HTTPStatus.OK: 200>
 >>> response.protocol
 'HTTP/2'
 >>> response.text