Compress - compress content to client if acceptable
Integrates with HTML::Mason, setting up handlers to deal with compressing the output if the reqesting client can handle it. Looks at the Accept-Encoding header. Only supports gzip and deflate.
At the start of a request, steals the request's out_method and hooks in our own internal one. That way if the buffer is ever flushed, we know that we should NOT compress the output at the end of the request.
At the end of the request, compress the output if that makes sense.
Copyright © 2000-2013 Applied Testing and Technology, Inc. All rights reserved.