[openstack-dev] [nova][api] Allow passing body for more API methods
Monty Taylor
mordred at inaugust.com
Mon May 11 18:50:04 UTC 2015
On 05/11/2015 02:05 PM, Dean Troyer wrote:
> 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.
++
More information about the OpenStack-dev
mailing list