[Catalyst] Re: Catalyst actions
Matt S Trout
dbix-class at trout.me.uk
Fri May 18 15:18:58 GMT 2007
On Fri, May 18, 2007 at 03:29:20PM +0200, A. Pagaltzis wrote:
> * Matt S Trout <dbix-class at trout.me.uk> [2007-05-18 14:30]:
> > I prefer to have my code wired up fairly explicitly for GET vs.
> > POST but that's more an obsession with the HTTP and URI
> > standards than any practical concern.
>
> The Rails crew learned the painful way that there can be very
> practical concerns indeed when you get these wrong… :-)
>
> (For those who don’t know: using POST where GET would be
> appropriate just costs you cacheability and thus scalability;
> using GET where POST would be appropriate can cost your users
> their data.)
Right, but you can deal with that just by checking $c->req->method.
I distinguish explicitly between query and body params as well, which is
overkill for some situations.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Catalyst
mailing list