Builds a new stream that will output $number_of_chunks chunks of data.
Usage:
my $stream = Apache2::REST::Stream::TestStream->new($number_of_chunks, $delay_between_chunks);
Returns a hash to be served as a chunk of data. undef at the end of the stream.
To install Apache2::REST, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::REST
CPAN shell
perl -MCPAN -e shell install Apache2::REST
For more information on module installation, please visit the detailed CPAN module installation guide.