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: 13.0.131
Syntax
C#
public static class RequestHelper

The RequestHelper type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberRANGE_END
Range end constant
Public fieldStatic memberRANGE_START
Range start constant
Top
Properties
  NameDescription
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.
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 memberGetRange(Int64, Boolean, Boolean, Boolean)
Parses the range header from the request.
Public methodStatic memberGetRange(Int64, HttpContextBase, Boolean, Boolean, Boolean)
Parses the range header from the request.
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 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