NAME

Mojo::Filter::Chunked - Chunked Filter

SYNOPSIS

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

DESCRIPTION

Mojo::Filter::Chunked is a filter for the chunked transfer encoding.

ATTRIBUTES

Mojo::Filter::Chunked inherits all attributes from Mojo::Filter.

METHODS

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;