- From: Martin J. Dürst <duerst@it.aoyama.ac.jp>
- Date: Wed, 06 Nov 2013 14:50:00 +0900
- To: Markus Lanthaler <markus.lanthaler@gmx.net>
- CC: "'Robin Berjon'" <robin@w3.org>, 'Martynas Jusevičius' <martynas@graphity.org>, "'Henry S. Thompson'" <ht@inf.ed.ac.uk>, www-tag@w3.org
I'm not sure which hack (or hacks) Rails uses or has been used (Yehuda will know), but as Markus also explains below, if HTML/browsers implemented basic HTTP methods such as DELETE, hacks such as X-HTTP-Method-Override wouldn't be necessary. Using REST the way Rails does (mapping HTTP Methods to database CRUD) doesn't work for every Web application, but as the success of Rails (2.0 and up in this case) among else shows, it works extremely well for a lot of applications. TAG, please don't shoot the messenger, but try to address the core problem. Regards, Martin. On 2013/11/05 22:51, Markus Lanthaler wrote: > On Tuesday, November 05, 2013 1:28 PM, Robin Berjon wrote: >> On 05/11/2013 13:07 , Martynas Jusevičius wrote: >>> FYI: Jersey, which is an implementation of JAX-RS (Java API for >>> RESTful Web Services) supports X-HTTP-Method-Override as well: >>> >> https://jersey.java.net/apidocs/2.3.1/jersey/org/glassfish/jersey/serve >> r/filter/HttpMethodOverrideFilter.html >>> >> https://jersey.java.net/apidocs/1.17/jersey/com/sun/jersey/api/containe >> r/filter/PostReplaceFilter.html >> >> So do Symfony and ExpressJS (with middleware), and in fact probably >> absolutely every single framework with any kind of serious usage >> available out there (and then some). >> >> AFAIR this hack has been around in one form or other for at least a >> decade, I don't think it's going anywhere. > > Well, often the only choice is to use such hacks. There have been various efforts [1-4] in adding support for other methods to HTML but unfortunately they were rejected. I agree, until this dilemma is solved in HTML those practices won't go anywhere as they are necessary. > > > Cheers, > Markus > > > [1] http://www.w3.org/TR/2010/WD-html5-20100624/association-of-controls-and-forms.html#attr-fs-method > [2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=10671 > [3] https://www.w3.org/html/wg/tracker/issues/195 > [4] http://amundsen.com/examples/put-delete-forms/ > > > -- > Markus Lanthaler > @markuslanthaler > > >
Received on Wednesday, 6 November 2013 05:51:16 UTC