I'm considering using HT as a back-end RESTful web service for an Adobe Flex client. Does HT support the PUT and DELETE HTTP verbs? If so, how does one use them?
I see from the docs that the "define-easy-handler has a "request-type" parameter that accepts "GET", "POST", or "BOTH". Is there any chance "PUT" and "DELETE" have been added recently?
Thanks in advance.
Does HT support the PUT and DELETE HTTP verbs?
Yes, of course. hunchentoot:request-method and hunchentoot:request-method* returns a request type.
RESTful define-easy-handler
define-easy-handler ill for REST. I develop RESTAS web framework (based on Hunchentoot) with RESTful in mind. Look http://restas.lisper.ru/en/manual/routes.html. You can easily install RESTAS via quicklisp.
Andrey
On Fri, Apr 1, 2011 at 5:32 PM, G Horiske prytane@gmail.com wrote:
I'm considering using HT as a back-end RESTful web service for an Adobe Flex client. Does HT support the PUT and DELETE HTTP verbs? If so, how does one use them?
In addition to looking at RESTAS, you might also want to look at the source code of CL-WEBDAV.
I see from the docs that the "define-easy-handler has a "request-type" parameter that accepts "GET", "POST", or "BOTH". Is there any chance "PUT" and "DELETE" have been added recently?
DEFINE-EASY-HANDLER is not meant to be Hunchentoot's Swiss Army Knife. It's just a convenience macro to write simple "standard" handlers.
Edi.