From: Simon K Date: Thu, 27 Jan 2022 11:58:33 +0000 (+0000) Subject: make docs accurate that `content=` is also excluded in some requests (#1922) X-Git-Tag: 0.23.0~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b6af4d12327b770405a7a059653ec47c54f6112;p=thirdparty%2Fhttpx.git make docs accurate that `content=` is also excluded in some requests (#1922) Co-authored-by: Tom Christie --- diff --git a/httpx/_api.py b/httpx/_api.py index eb81d464..e206b149 100644 --- a/httpx/_api.py +++ b/httpx/_api.py @@ -183,8 +183,8 @@ def get( **Parameters**: See `httpx.request`. - Note that the `data`, `files`, and `json` parameters are not available on - this function, as `GET` requests should not include a request body. + Note that the `data`, `files`, `json` and `content` parameters are not available + on this function, as `GET` requests should not include a request body. """ return request( "GET", @@ -221,8 +221,8 @@ def options( **Parameters**: See `httpx.request`. - Note that the `data`, `files`, and `json` parameters are not available on - this function, as `OPTIONS` requests should not include a request body. + Note that the `data`, `files`, `json` and `content` parameters are not available + on this function, as `OPTIONS` requests should not include a request body. """ return request( "OPTIONS", @@ -259,8 +259,8 @@ def head( **Parameters**: See `httpx.request`. - Note that the `data`, `files`, and `json` parameters are not available on - this function, as `HEAD` requests should not include a request body. + Note that the `data`, `files`, `json` and `content` parameters are not available + on this function, as `HEAD` requests should not include a request body. """ return request( "HEAD", @@ -426,8 +426,8 @@ def delete( **Parameters**: See `httpx.request`. - Note that the `data`, `files`, and `json` parameters are not available on - this function, as `DELETE` requests should not include a request body. + Note that the `data`, `files`, `json` and `content` parameters are not available + on this function, as `DELETE` requests should not include a request body. """ return request( "DELETE",