C# Class BlogEngine.Core.Web.HttpModules.CompressionModule

Compresses the output using standard gzip/deflate.
Inheritance: IHttpModule
Mostrar archivo Open project: rasmuskl/ReSharperCourse

Private Properties

Property Type Description
ContextPostReleaseRequestState void
IHttpModule void
IHttpModule void
IsEncodingAccepted bool
SetEncoding void
SetHeaders void
context_Error void

Public Methods

Method Description
CompressResponse ( HttpContext context ) : void

Compresses the response stream using either deflate or gzip depending on the client.

Private Methods

Method Description
ContextPostReleaseRequestState ( object sender, EventArgs e ) : void

Handles the BeginRequest event of the context control.

IHttpModule ( ) : void

Disposes of the resources (other than memory) used by the module that implements .

IHttpModule ( System.Web.HttpApplication context ) : void

Initializes a module and prepares it to handle requests.

IsEncodingAccepted ( string encoding ) : bool

Checks the request headers to see if the specified encoding is accepted by the client.

SetEncoding ( string encoding ) : void

Adds the specified encoding to the response headers.

SetHeaders ( HttpContext context ) : void
context_Error ( object sender, EventArgs e ) : void

Method Details

CompressResponse() public static method

Compresses the response stream using either deflate or gzip depending on the client.
public static CompressResponse ( HttpContext context ) : void
context System.Web.HttpContext /// The HTTP context to compress. ///
return void