Click or drag to resize
RequestHelper Class
Request helping methods.
Inheritance Hierarchy
SystemObject
  CMS.HelpersRequestHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static class RequestHelper

The RequestHelper type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAllowGZip
Allow GZip of the output.
Public propertyStatic memberAllowResourceCompression
Gets whether the resource compression is enabled.
Public propertyStatic memberGetFileEndRequest
Gets whether the request is completed or ended when request processing is finished.
Public propertyStatic memberHttpMethod
Gets the HTTP data transfer method (such as GET, POST) used by client.
Public propertyStatic memberPendingRequests
Counter of currently pending requests.
Public propertyStatic memberTotalGetFileRequests
Counter of GetFile requests.
Public propertyStatic memberTotalNonPageRequests
Counter of NonPage requests.
Public propertyStatic memberTotalPageNotFoundRequests
Counter of Page not found requests.
Public propertyStatic memberTotalPageRequests
Counter of Total Content page requests.
Public propertyStatic memberTotalPageRobotsTxtRequests
Counter of Total page Robots.txt requests.
Public propertyStatic memberTotalSystemPageRequests
Counter of Total System page requests.
Top
Methods
  NameDescription
Public methodStatic memberCompleteRequest
Completes current request (calls ApplicationInstance.CompleteRequest).
Public methodStatic memberEndResponse
Ends current response (calls Response.End).
Public methodStatic memberEnsureScriptTimeout
Set script timeout due to compilation delay
Public methodStatic memberGetHeader
Returns the value of specified HTTP header or default value if header is not defined.
Public methodStatic memberIsAJAXRequest
Returns true if current request contains "x-microsoftajax" header item or "XMLHttpRequest" value.
Public methodStatic memberIsAsyncPostback
Public methodStatic memberIsCallback
Returns true if current HttpMethod is POST and "__CALLBACKID" request parameter is not null.
Public methodStatic memberIsGZipSupported
Returns true if GZip is supported by the client browser
Public methodStatic memberIsPostBack
Returns true if current HttpMethod is POST.
Public methodStatic memberIsWebDAVPropfindRequest
Determines whether current request is WebDAV PROPFIND request and url is application path.
Public methodStatic memberIsWebDAVRequest
Determines whether current request is WebDAV request
Public methodStatic memberResetPerformanceSettings
Sets all the performance settings to null and causes them to be reloaded.
Public methodStatic memberRespond400
Sets the 400 status (Bad Request) and ends the response.
Public methodStatic memberRespond403
Sets the 403 status (Forbidden) and ends the response.
Public methodStatic memberRespond404
Sets the 404 status (Not Found) and ends the response.
Public methodStatic memberRespond500
Sets the 500 status (Internal Server Error) and ends the response.
Public methodStatic memberRespond503
Sets the 503 status (Service Unavailable) and ends the response.
Top
See Also