C# 클래스 BlogEngine.Core.Web.HttpModules.CompressionModule

Compresses the output using standard gzip/deflate.
상속: IHttpModule
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

Private Properties

프로퍼티 타입 설명
ContextPostReleaseRequestState void
IHttpModule void
IHttpModule void
IsEncodingAccepted bool
SetEncoding void
SetHeaders void
context_Error void

공개 메소드들

메소드 설명
CompressResponse ( HttpContext context ) : void

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

비공개 메소드들

메소드 설명
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

메소드 상세

CompressResponse() 공개 정적인 메소드

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. ///
리턴 void