Attribute that can be added to controller methods to force content to be GZip encoded if the client supports it
System.Attribute
System.Web.Mvc.FilterAttribute
System.Web.Mvc.ActionFilterAttribute
Westwind.Web.Mvc.CompressContentAttribute
public class CompressContentAttribute : ActionFilterAttribute, IActionFilter
Class Members
Member | Description | |
---|---|---|
Constructor |
||
GZipEncodePage |
Sets up the current page or handler to use GZip through a Response.Filter IMPORTANT: You have to call this method before any output is generated! public static void GZipEncodePage() |
|
IsGZipSupported |
Determines if GZip is supported public static bool IsGZipSupported() |
|
OnActionExecuting |
Override to compress the content that is generated by an action method. public virtual void OnActionExecuting(ActionExecutingContext filterContext) |
Requirements
Namespace: Westwind.Web.MvcAssembly: westwind.web.mvc.dll
© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic