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
Afficher le fichier Open project: rabbal/Mvc5

Méthodes protégées

Méthode 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 méthode

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
Résultat System.IO

WriteHeaders() protected méthode

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