Mojo::Filter::Chunked - Chunked Filter
use Mojo::Filter::Chunked; my $chunked = Mojo::Filter::Chunked->new; $chunked->headers(Mojo::Headers->new); $chunked->input_buffer(Mojo::Buffer->new); $chunked->output_buffer(Mojo::Buffer->new); $chunked->input_buffer->add_chunk("6\r\nHello!") $chunked->parse; print $chunked->output_buffer->empty; print $chunked->build('Hello World!');
Mojo::Filter::Chunked is a filter for the chunked transfer encoding.
Mojo::Filter::Chunked inherits all attributes from Mojo::Filter.
Mojo::Filter::Chunked inherits all methods from Mojo::Filter and implements the following new ones.
build
my $formatted = $filter->build('Hello World!');
parse
$filter = $filter->parse;
To install Mojo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo
CPAN shell
perl -MCPAN -e shell install Mojo
For more information on module installation, please visit the detailed CPAN module installation guide.