client "delete" method missing "data" and "json" parameters #1587
-
Hi, I'm using the AsyncClient for making API calls to an external API. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Yes.
Probably not, no. See our docs at https://www.python-httpx.org/compatibility/#request-body-on-http-methods and the HTTP RFC https://tools.ietf.org/html/rfc7231#section-4.3.5
So, |
Beta Was this translation helpful? Give feedback.
Yes.
Probably not, no.
See our docs at https://www.python-httpx.org/compatibility/#request-body-on-http-methods and the HTTP RFC https://tools.ietf.org/html/rfc7231#section-4.3.5
So,
DELETE
requests with a body are not completely disallowed, but it's discouraged as a usage. For this reason we don't support it in the general.delete()
API, but we do still allow for it if that's really what you intended.