Skip to main content

GzipOptimizationTest

Optimized code to find if GZIP is supported from:

Other resources for GZip, deflate resources:

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
TypeName
System.Web.HttpContextcontext

HasSupport(HttpContext)

View Source
Declaration
public static bool HasSupport(HttpContext context)
Returns

System.Boolean

Parameters
TypeName
System.Web.HttpContextcontext

SlowWayToCheckIfGZipIsSupported(HttpRequest)

View Source
Declaration
public static bool SlowWayToCheckIfGZipIsSupported(HttpRequest request)
Returns

System.Boolean

Parameters
TypeName
System.Web.HttpRequestrequest