Tatsuhiko Miyagawa > Plack-0.9932 > Plack::TempBuffer

Download:
Plack-0.9932.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: Plack-1.0004

NAME ^

Plack::TempBuffer - temporary buffer to save bytes

SYNOPSIS ^

  my $buf = Plack::TempBuffer->new($length);
  $buf->print($bytes);

  my $size = $buf->size;
  my $fh   = $buf->rewind;

DESCRIPTION ^

Plack::TempBuffer is a buffer class to store arbitrary length of byte strings and then get a seekable filehandle once everything is buffered. It uses PerlIO and/or temporary file to save the buffer depending on the length of the size.

SEE ALSO ^

Plack Plack::Request

syntax highlighting: