NAME
Mojo::Filter - Filter Base Class
SYNOPSIS
use base 'Mojo::Filter';
DESCRIPTION
Mojo::Filter is a base class for HTTP filters.
ATTRIBUTES
Mojo::Filter inherits all attributes from Mojo::Stateful and implements the following new ones.
headers
my $headers = $filter->headers;
$filter = $filter->headers(Mojo::Headers->new);
input_buffer
my $input_buffer = $filter->input_buffer;
$filter = $filter->input_buffer(Mojo::Buffer->new);
output_buffer
my $output_buffer = $filter->output_buffer;
$filter = $filter->output_buffer(Mojo::Buffer->new);
METHODS
Mojo::Filter inherits all methods from Mojo::Stateful and implements the following new ones.
build
my $formatted = $filter->build('Hello World!');
parse
$filter = $filter->parse;