X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=trunk%2Ft%2Flib%2FTestAppOnDemand%2FController%2FBody.pm;fp=trunk%2Ft%2Flib%2FTestAppOnDemand%2FController%2FBody.pm;h=0000000000000000000000000000000000000000;hb=2757db2c7c600c8a0b8e2b4366f38c97804c2844;hp=bbf3c8850faa352315866ac07ccd0ee3335b69f3;hpb=ceae39c522c2145a453188867dd581062795ecee;p=catagits%2FCatalyst-Runtime.git diff --git a/trunk/t/lib/TestAppOnDemand/Controller/Body.pm b/trunk/t/lib/TestAppOnDemand/Controller/Body.pm deleted file mode 100644 index bbf3c88..0000000 --- a/trunk/t/lib/TestAppOnDemand/Controller/Body.pm +++ /dev/null @@ -1,41 +0,0 @@ -package TestAppOnDemand::Controller::Body; - -use strict; -use base 'Catalyst::Controller'; - -use Data::Dump (); - -sub body_params : Local { - my ( $self, $c ) = @_; - - $c->res->body( Data::Dump::dump( $c->req->body_parameters ) ); -} - -sub query_params : Local { - my ( $self, $c ) = @_; - - $c->res->body( Data::Dump::dump( $c->req->query_parameters ) ); -} - -sub params : Local { - my ( $self, $c ) = @_; - - $c->res->body( Data::Dump::dump( $c->req->parameters ) ); -} - -sub read : Local { - my ( $self, $c ) = @_; - - # read some data - my @chunks; - - while ( my $data = $c->read( 10_000 ) ) { - push @chunks, $data; - } - - $c->res->content_type( 'text/plain'); - - $c->res->body( join ( '|', map { length $_ } @chunks ) ); -} - -1;