[Catalyst] Re: Catalyst::Action::REST

Garrett Goebel ggoebel at goebel.ws
Wed Nov 22 03:44:33 GMT 2006


On Nov 21, 2006, at 9:16 AM, Matt S Trout wrote:

> Garrett Goebel wrote:
>> On Nov 20, 2006, at 9:02 AM, A. Pagaltzis wrote:
>>>
>>> Of course, there are going to be some cases where that isn’t
>>> quite enough; for these, you could have the option of adding
>>> methods that work as if they were custom invented HTTP methods.
>>> The framework could permit tunneling unsupported methods inside
>>> POST requests, which it would automatically unravel before
>>> dispatching. The Rails guys were doing something along these
>>> lines; I have to take another look sometime.
>> I tunneled PUT and DELETE inside a POST via a "_method" body  
>> parameter, which was automatically unravelled before dispatch  
>> within an overridden Catalyst::prepare_body_parameters method.
>
> Clever. Would you be willing to separate that out as a plugin with  
> a configurable parameter name? I think that might be well-received  
> (and actually something that *should* be a plugin for once :)

I'll see what I can do. I'll be off the grid over the Thanksgiving  
holidays. But I'll take my laptop with me. There's a good chance I'll  
have the time, but with 4 kids under the age of 10, I can't make any  
promises ;)

cheers,

Garrett


More information about the Catalyst mailing list