1 package TestAppOnDemand::Controller::Body;
4 use base 'Catalyst::Controller';
8 sub body_params : Local {
11 $c->res->body( Data::Dump::dump( $c->req->body_parameters ) );
14 sub query_params : Local {
15 my ( $self, $c ) = @_;
17 $c->res->body( Data::Dump::dump( $c->req->query_parameters ) );
21 my ( $self, $c ) = @_;
23 $c->res->body( Data::Dump::dump( $c->req->parameters ) );
27 my ( $self, $c ) = @_;
32 while ( my $data = $c->read( 10_000 ) ) {
36 $c->res->content_type( 'text/plain');
38 $c->res->body( join ( '|', map { length $_ } @chunks ) );