Can I add body to DELETE request?
# ktor
f
Can I add body to DELETE request?
b
You can, but you shouldn't
b
Sorry, the better reference would be this: https://tools.ietf.org/html/rfc7231#section-4.3.5
f
Yes, I know, but I can't say it to my backend developers
b
So technically there is no limitation from the http spec as I can see so far. The message body might be remove from some proxies. But perhaps @Big Chungus can tell some reasons why you shouldn’t
s
Say it to your backend developers. Undefined behavior for DELETE payload may also mean for example, that a proxy on the way may just drop it.
Such APIs are must be automatically vetoed during review and sent back to engineering to fix
Also libraries are typically not supporting it, so it will always be a pain for devs to connect to such platform
Your developers are just trying to be REST fancy, without solving a real functional problem
b
@Bino, it's just REST conventions. Nothing prevents you from doing so