How to specify cookies in a response to a post



I can not seem to find an example of how to define a response including cookies. Could anyone give me a pointer to an example (if at all possible)?



Not sure myself, but I would assuem since a cookie is just a header, you could at the very least use a response header with Set-Cookie as the key and whatever cookie values. It would be nice if the RAML editor (and any RAML plugin for other editors) would add the ability to specify response headers like cache, cookies, etc with code completion capabilities.


@justjacksonn, the 0.8 spec says

An API’s methods MAY support or require non-standard HTTP headers. In
the API definition, specify the non-standard HTTP headers by using the
headers property.

Set-Cookie is a standard header, therefore it doesn’t seem to be covered by the current spec.