The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MasonX::Plugin::Compress - send compressed output if the client supports it

SYNOPSIS

    PerlAddVar MasonPlugins MasonX::Plugin::Compress
    
    # or in a handler.pl script
    my $ah = HTML::Mason::ApacheHandler->new( plugins => [ MasonX::Plugin::Compress-> new ],
                                              # ...
                                              );

DESCRIPTION

Negotiates a preferred compression method (currently, gzip, bzip2 or deflate) with the client, compresses the response and sets appropriate headers.

Methods

end_request_hook

TODO

Investigate what other types to compress (currently, only compresses text/*).

SEE ALSO

Catalyst::Plugin::Compress::*.

Apache::Compress.

AUTHOR

David Baird, <cpan@riverside-cms.co.uk>

BUGS

Please report any bugs or feature requests to bug-masonx-plugin-compress@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MasonX-Plugin-Compress. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2005 David Baird, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.