C# Class Utilities.WebHttpHandlers.BaseHttpHandler

Base handler containing common code for all handlers
Inheritance: IHttpHandler
Mostra file Open project: mrvshah/Utilities

Private Properties

Property Type Description
WriteBytes void

Public Methods

Method Description
ProcessRequest ( HttpContext context ) : void

Process current request

Protected Methods

Method Description
WriteFromCache ( string cacheKey, bool isCompressed, string contentType, HttpContext currentContext ) : bool

Check and send response from cache if it exists

Private Methods

Method Description
WriteBytes ( byte bytes, bool isCompressed, string contentType, HttpContext currentContext ) : void

Write compressed data in response and flush response to client

Method Details

ProcessRequest() public method

Process current request
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext Current http request
return void

WriteFromCache() protected method

Check and send response from cache if it exists
protected WriteFromCache ( string cacheKey, bool isCompressed, string contentType, HttpContext currentContext ) : bool
cacheKey string Cache key
isCompressed bool Used to drive Content-Encoding response header setting
contentType string Response data conent type. e.g. javascript, css
currentContext System.Web.HttpContext Current http context
return bool