bobtfish/catalyst-action-rest — pull request #2 by dim0xff (2012-03-09 11:26:45+00:00)
Title: OPTIONS requests and not implemented methods.

Hello!

I've made some changes.
# _return_not_implemented
Catalyst::Action::REST::_return_not_implemented was returning message with real subroutine name, so everyone can see it. I think it should be visible only for developers, but not for end users. End users should see requested URI.

# OPTIONS request method
OPTIONS request method should return in Allow header only subroutines, which have "method part" in uppercase.
A little example for explanation:

sub test_sub : Local : ActionClass('REST') { ... }
sub test_sub_GET : Private { ... }
sub test_sub_MY_GET : Private { ... }
sub test_sub_post : Private { ... }

So response for OPTIONS request should return the next Allow header:

Allow: GET MY_GET

PS: sorry for my English :-)