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

Download:
Apache2-REST-0.07.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

new

Returns a new empty instance.

nextChunk

Returns the nextChunk of data to output to the client.

This may return:

 - A reference on a chunk of data (a hash, an array, etc..)

 - A string of bytes. This is usefull when you force using
   a binary writer (by using $req->requestedFormat('bin') in your handler)
 
 - undef if the end of the stream is reached.

Implement this in application specific subclasses (Or use one of the provided subclasses if your data source is compatible)

syntax highlighting: