Are there any way that support the X-HTTP-Method-Override request header
(automatically/transparently) in RESTeasy?
This would
make it much easier to support clients that cannot send PUT/DELETE requests.
Yes, overriding POST is less than ideal but I think the Google convention of
using X-HTTP-Method-Override is a reasonable/convenient work-around.
If RESTeasy
could dispatch POST requests with the X-HTTP-Method-Override header
automatically it would be a big time saver. I think Jersey just added something
like this via a filtering approach, but I’d prefer to stick with RESTeasy.
In RESTeasy processing headers are supported by using interceptors, which are described in the Reference Guide.
What you want, is probably a PreProcessInterceptor which intercepts the call, looks for the header and changes the method string/redirects as necessary.