Click or drag to resize
RequestHelper Methods

The RequestHelper type exposes the following members.

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