Rainbow 2.0 Code Documentation

HttpModule Class

An HttpModule that hooks onto the Response.Filter property of the current request and tries to compress the output, based on what the browser supports

For a list of all members of this type, see HttpModule Members.

System.Object
   HttpModule

[Visual Basic]
NotInheritable Public Class HttpModule
    Implements 
[C#]
public sealed class HttpModule : 
[C++]
public __gc __sealed class HttpModule : public 
[JScript]
public  class HttpModule extends 

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

This HttpModule uses classes that inherit from CompressingFilter. We already support gzip and deflate (aka zlib), if you'd like to add support for compress (which uses LZW, which is licensed), add in another class that inherits from HttpFilter to do the work.

This module checks the Accept-Encoding HTTP header to determine if the client actually supports any notion of compression. Currently, we support the deflate (zlib) and gzip compression schemes. I chose to not implement compress because it uses lzw which requires a license from Unisys. For more information about the common compression types supported, see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.11 for details.

Requirements

Namespace: blowery.Web.HttpCompress

Assembly: blowery.Web.HttpCompress (in blowery.Web.HttpCompress.dll)

See Also

HttpModule Members | blowery.Web.HttpCompress Namespace | CompressingFilter | Stream