C# Class Common.HttpCompress.CompressingFilter

Base for any HttpFilter that performing compression
When implementing this class, you need to implement a HttpOutputFilter along with a CompressingFilter.ContentEncoding. The latter corresponds to a content coding (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5) that your implementation will support.
Inheritance: HttpOutputFilter
Exibir arquivo Open project: rabbal/Mvc5

Protected Methods

Method Description
CompressingFilter ( Stream baseStream, CompressionLevels compressionLevel ) : System.IO

Protected constructor that sets up the underlying stream we're compressing into

WriteHeaders ( ) : void

Writes out the compression-related headers. Subclasses should call this once before writing to the output stream.

Method Details

CompressingFilter() protected method

Protected constructor that sets up the underlying stream we're compressing into
protected CompressingFilter ( Stream baseStream, CompressionLevels compressionLevel ) : System.IO
baseStream System.IO.Stream The stream we're wrapping up
compressionLevel CompressionLevels The level of compression to use when compressing the content
return System.IO

WriteHeaders() protected method

Writes out the compression-related headers. Subclasses should call this once before writing to the output stream.
protected WriteHeaders ( ) : void
return void