Skip to content

Commit

Permalink
make docs accurate that content= is also excluded in some requests (#…
Browse files Browse the repository at this point in the history
…1922)

Co-authored-by: Tom Christie <tom@tomchristie.com>
  • Loading branch information
symonk and tomchristie committed Jan 27, 2022
1 parent 15c51b9 commit 7b6af4d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions httpx/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 7b6af4d

Please sign in to comment.