From: Tom Christie Date: Mon, 17 Jun 2019 16:28:27 +0000 (+0100) Subject: Tweak compat docs X-Git-Tag: 0.5.0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdc4ab2a892a459c9f0a2c11a5f9011b78d351f1;p=thirdparty%2Fhttpx.git Tweak compat docs --- diff --git a/docs/compatibility.md b/docs/compatibility.md index b74b493f..f712113e 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -10,7 +10,6 @@ Pretty much all the API mentioned in the `requests` QuickStart should be identic to the API in our own documentation. The following exceptions apply: * `Response.url` - Returns a `URL` instance, rather than a string. Use `str(response.url)` if you need a string instance. -* `Response.status_code` - Returns an integer, which may be a `StatusCode` IntEnum. This has the same behaviour as any other integer, except that it provides more information in the instance representation. * `http3.codes` - In our documentation we prefer the uppercased versions, such as `codes.NOT_FOUND`, but also provide lower-cased versions for API compatibility with `requests`. * `stream=True`. - Streaming responses provide the `.stream()` and `.raw()` byte iterator interfaces, rather than the `.iter_content()` method and the `.raw` socket interface.