1 package Catalyst::Action::Deserialize::YAML;
4 use namespace::autoclean;
6 extends 'Catalyst::Action';
11 my ( $controller, $c, $test ) = @_;
13 my $body = $c->request->body;
17 my $body = $c->request->body;
18 $rdata = LoadFile( "$body" );
23 $c->request->data($rdata);
26 'I would have deserialized, but there was nothing in the body!')