X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FDeserializeMultiPart.pm;h=f1f1f8cf61b46a953debb433ff7cc4c9a3aa1ecb;hb=f5aa7d458e3df74ac047c538fe1754192c0e944c;hp=5d6536b2b51952d076243920882c127db8f67b41;hpb=0143ed45773c12697b1e27f5971c1e4a219a737f;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/DeserializeMultiPart.pm b/lib/Catalyst/Action/DeserializeMultiPart.pm index 5d6536b..f1f1f8c 100644 --- a/lib/Catalyst/Action/DeserializeMultiPart.pm +++ b/lib/Catalyst/Action/DeserializeMultiPart.pm @@ -6,9 +6,6 @@ use namespace::autoclean; extends 'Catalyst::Action::Deserialize'; use HTTP::Body; -our $VERSION = '0.91'; -$VERSION = eval $VERSION; - our $NO_HTTP_BODY_TYPES_INITIALIZATION; $HTTP::Body::TYPES->{'multipart/mixed'} = 'HTTP::Body::MultiPart' unless $NO_HTTP_BODY_TYPES_INITIALIZATION; @@ -32,7 +29,7 @@ __PACKAGE__->meta->make_immutable; =head1 NAME -Catalyst::Action::DeserializeMultiPart - Deserialize Data in a Multi-Part Request +Catalyst::Action::DeserializeMultiPart - Deserialize Data in a Multipart Request =head1 SYNOPSIS @@ -46,7 +43,7 @@ Catalyst::Action::DeserializeMultiPart - Deserialize Data in a Multi-Part Reques =head1 DESCRIPTION -This action will deserialize multi-part HTTP POST, PUT, OPTIONS and DELETE +This action will deserialize multipart HTTP POST, PUT, OPTIONS and DELETE requests. It is a simple extension of L with the exception that rather than using the entire request body (which may contain multiple sections), it will look for a single part in the request @@ -79,9 +76,9 @@ that you would like to have all C requests parsed by L module. This is done by a package variable inside L: C<$HTTP::Body::Types> (a HASH ref). -B As this module modifys the behaviour of HTTP::Body globally, +B As this module modifies the behaviour of HTTP::Body globally, adding it to an application can have unintended consequences as multipart -bodies will be treated differently to before. +bodies will be parsed differently from before. Feel free to add other content-types to this hash if needed or if you would prefer