1 package Test::Catalyst::Action::REST::Controller::DeserializeMultiPart;
3 use namespace::autoclean;
5 BEGIN { extends 'Catalyst::Controller' }
10 'text/x-yaml' => 'YAML',
11 'text/x-data-dumper' => [ 'Data::Serializer', 'Data::Dumper' ],
12 'text/broken' => 'Broken',
16 sub test :Local ActionClass('DeserializeMultiPart') DeserializePart('REST') {
17 my ( $self, $c ) = @_;
19 $c->res->output($c->req->data->{'kitty'} . '|' . $c->req->uploads->{other}->size);