Method | Description | |
---|---|---|
GetFilterForScheme ( string schemes, Stream output, |
Get ahold of a CompressingFilter for the given encoding scheme. If no encoding scheme can be found, it returns null. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3 for details on how clients are supposed to construct the Accept-Encoding header. This implementation follows those rules, though we allow the server to override the preference given to different supported algorithms. I'm doing this as I would rather give the server control over the algorithm decision than the client. If the clients send up * as an accepted encoding with highest quality, we use the preferred algorithm as specified in the config file. |
Method | Description | |
---|---|---|
CompressContent ( object sender, |
EventHandler that gets ahold of the current request context and attempts to compress the output.
|
|
GetQuality ( string acceptEncodingValue ) : float | ||
IHttpModule ( ) : void |
Implementation of IHttpModule Currently empty. Nothing to really do, as I have no member variables. |
|
IHttpModule ( System.Web.HttpApplication context ) : void |
Init the handler and fulfill IHttpModule This implementation hooks the ReleaseRequestState and PreSendRequestHeaders events to figure out as late as possible if we should install the filter. Previous versions did not do this as well. |
|
IsBinaryFile ( System.Web.HttpApplication app ) : bool |
public static GetFilterForScheme ( string schemes, Stream output, |
||
schemes | string | |
output | Stream | |
prefs | ||
return |