The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.