X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FAction%2FDeserializeMultiPart.pm;h=e1bcb5e826ef4dd775fc7b9e38bc5384b523a6df;hb=df5f9ffc57154013cd5b6208613e37b424481a57;hp=8a882c3a6d9018a4b2dd75bce458478418f7ce47;hpb=8bf1f20e52df6d2650bb9c5f68cca300b04a5b64;p=catagits%2FCatalyst-Action-REST.git diff --git a/lib/Catalyst/Action/DeserializeMultiPart.pm b/lib/Catalyst/Action/DeserializeMultiPart.pm index 8a882c3..e1bcb5e 100644 --- a/lib/Catalyst/Action/DeserializeMultiPart.pm +++ b/lib/Catalyst/Action/DeserializeMultiPart.pm @@ -6,7 +6,7 @@ use namespace::autoclean; extends 'Catalyst::Action::Deserialize'; use HTTP::Body; -our $VERSION = '0.91'; +our $VERSION = '0.99'; $VERSION = eval $VERSION; our $NO_HTTP_BODY_TYPES_INITIALIZATION; @@ -32,7 +32,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 +46,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 @@ -77,7 +77,13 @@ the individual parts, L must be told which content types to map to L. This module makes the assumption 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). Feel free to +inside L: C<$HTTP::Body::Types> (a HASH ref). + +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 parsed differently from before. + +Feel free to add other content-types to this hash if needed or if you would prefer that C NOT be added to this hash, simply delete it after loading this module.