From: Jt Miclat Date: Fri, 4 Oct 2019 00:46:24 +0000 (+0800) Subject: Document compatibility difference for get, delete, head, and options (#418) X-Git-Tag: 0.7.5~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85fa89c49c76f6f8963fc5af7a134fc300003860;p=thirdparty%2Fhttpx.git Document compatibility difference for get, delete, head, and options (#418) --- diff --git a/docs/compatibility.md b/docs/compatibility.md index 9d8c864b..d748ddd2 100644 --- a/docs/compatibility.md +++ b/docs/compatibility.md @@ -13,6 +13,7 @@ to the API in our own documentation. The following exceptions apply: * `httpx.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. +* `.get`, `.delete`, `.head`, `.options` - These methods do not support `files`, `data`, or `json` arguments. Use `.request` if you need to need to send data using these http methods. ## Advanced Usage