[Twisted-web] REST and DELETE
Jean-Paul Calderone
exarkun at divmod.com
Wed Dec 19 16:07:41 EST 2007
On Wed, 19 Dec 2007 12:55:18 -0800 (PST), Gary Jefferson <garyjefferson123 at yahoo.com> wrote:
>I notice that twisted.web.resource supports GET, PUT,
>and POST (via render_ methods), but not DELETE. Is
>this intentional, or are there some plans to add
>support for those of us who want to do full-fledged
>REST with twisted-web?
Are you sure? If you implement render_DELETE on a Resource,
I think twisted.web will call it.
>
>I haven't looked at figuring out httpclient support
>for the same in twisted yet, but I'm assuming that
>sending DELETE/PUT is similar to sending POST, i.e.,
>use putrequest() with 'DELETE'?
>
I'm not sure what putrequest is. I also don't really know
what the contents of a DELETE request might be, so I probably
couldn't say anything useful here even if I did know what
putrequest is.
Jean-Paul
More information about the Twisted-web
mailing list