[openstack-dev] [nova][api] Allow passing body for more API methods

Dean Troyer dtroyer at gmail.com
Mon May 11 18:05:19 UTC 2015


On Mon, May 11, 2015 at 11:44 AM, Rosa, Andrea (HP Cloud Services) <
andrea.rosa at hp.com> wrote:

> > Agreed. Violating the HTTP spec is something that should be avoided.
>
> Actually it is not violating the HTTP spec, from RFC:
> "  A payload within a DELETE request message has no defined semantics;
>    sending a payload body on a DELETE request might cause some existing
>    implementations to reject the request."
>
> The RFC prohibit the use of a body just for the TRACE:
> " A client MUST NOT send a message body in a TRACE request."
>


When playing in undefined areas such as this it is best to keep in ming Jon
Postel's RFC 1122 principle: "Be liberal in what you accept, and conservative
in what you send".

I'll put it this way:  An RFC not prohibiting something does not make it a
good idea.  This is not how we build a robust API that developers and user
can easily adopt.

dt


Dean Troyer
dtroyer at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150511/5f2c3b05/attachment-0001.html>


More information about the OpenStack-dev mailing list