SYNOPSIS

    use Catalyst qw/Compress/;

or

use Catalyst qw/ Unicode Compress /;

If you want to use this plugin with Catalyst::Plugin::Unicode.

Remember to specify compression_format with:

_\|_PACKAGE_\|_->config( compression_format => $format, );

$format can be either gzip bzip2 zlib or deflate. bzip2 is *only* supported by lynx and some other console text-browsers.

DESCRIPTION

This module combines Catalyst::Plugin::Deflate Catalyst::Plugin::Gzip Catalyst::Plugin::Zlib into one.

It compress response to [gzip bzip2 zlib deflate] if client supports it.

\s-1NOTE\s0: If you want to use this module with Catalyst::Plugin::Unicode, You \s-1MUST\s0 load this plugin \s-1AFTER\s0 Catalyst::Plugin::Unicode.

use Catalyst qw/ Unicode Compress /;

If you don't, You'll get error which is like:

[error] Caught exception in engine \*(L"Wide character in subroutine entry at /usr/lib/perl5/site_perl/5.8.8/Compress/Zlib.pm line xxx.\*(R"

INTERNAL METHODS

should_compress_response

This method determine wether compressing the reponse using this plugin.

RELATED TO Catalyst::Plugin::Compress…

Catalyst.

AUTHOR

Yiyi Hu \*(C`[email protected]\*(C'

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.