Jerome Eteve > Apache2-REST-0.07 > Apache2::REST::Stream::TestStream

Download:
Apache2-REST-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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);

nextChunk

Returns a hash to be served as a chunk of data. undef at the end of the stream.

syntax highlighting: