GzipOptimizationTest
Optimized code to find if GZIP is supported from:
Other resources for GZip, deflate resources:
- http://www.west-wind.com/Weblog/posts/10564.aspx
- http://www.west-wind.com/WebLog/posts/102969.aspx
- ICSharpCode
Assembly: ServiceStack.dll
View Source
Declaration
public static class GzipOptimizationTest
Methods
GetWorker(HttpContext)
View Source
Declaration
public static HttpWorkerRequest GetWorker(HttpContext context)
Returns
System.Web.HttpWorkerRequest
Parameters
Type | Name |
---|---|
System.Web.HttpContext | context |
HasSupport(HttpContext)
View Source
Declaration
public static bool HasSupport(HttpContext context)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Web.HttpContext | context |
SlowWayToCheckIfGZipIsSupported(HttpRequest)
View Source
Declaration
public static bool SlowWayToCheckIfGZipIsSupported(HttpRequest request)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Web.HttpRequest | request |