X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FTraitFor%2FRequest%2FREST.pm;h=eccc380e7079e6de4baf5f96d3060821a2be57d8;hb=d0822465cc09629df95ad9c522bce758f2badc8c;hp=e21022635cff055505d241eb01cc62e839c1e1a9;hpb=85aa4e18592a1c81b7c2cdd0217b05da74dbea21;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/TraitFor/Request/REST.pm b/lib/Catalyst/TraitFor/Request/REST.pm index e210226..eccc380 100644 --- a/lib/Catalyst/TraitFor/Request/REST.pm +++ b/lib/Catalyst/TraitFor/Request/REST.pm @@ -3,6 +3,9 @@ use Moose::Role; use HTTP::Headers::Util qw(split_header_words); use namespace::autoclean; +our $VERSION = '1.02'; +$VERSION = eval $VERSION; + has [qw/ data accept_only /] => ( is => 'rw' ); has accepted_content_types => ( @@ -93,7 +96,7 @@ Catalyst::TraitFor::Request::REST - A role to apply to Catalyst::Request giving =head1 DESCRIPTION This is a L applied to L that adds a few -methods to the request object to faciliate writing REST-y code. +methods to the request object to facilitate writing REST-y code. Currently, these methods are all related to the content types accepted by the client.