1 package TestApp::Controller::Action::Streaming;
4 use base 'TestApp::Controller::Action';
6 sub streaming : Global {
8 for my $line ( split "\n", <<'EOF' ) {
13 $c->res->write("$line\n");
18 my ( $self, $c ) = @_;
20 my $file = "$FindBin::Bin/01use.t";
21 my $fh = IO::File->new( $file, 'r' );
26 $c->res->body( "Unable to read $file" );