RequestHelper Methods |
The RequestHelper type exposes the following members.
Name | Description | |
---|---|---|
CompleteRequest |
Completes current request (calls ApplicationInstance.CompleteRequest).
| |
EndResponse |
Ends current response (calls Response.End).
| |
EnsureScriptTimeout |
Set script timeout due to compilation delay
| |
GetHeader |
Returns the value of specified HTTP header or default value if header is not defined.
| |
GetRange(Int64, Boolean, Boolean, Boolean) |
Parses the range header from the request.
| |
GetRange(Int64, HttpContextBase, Boolean, Boolean, Boolean) |
Parses the range header from the request.
| |
IsAJAXRequest |
Returns true if current request contains "x-microsoftajax" header item or "XMLHttpRequest" value.
| |
IsAsyncPostback | ||
IsCallback |
Returns true if current HttpMethod is POST and "__CALLBACKID" request parameter is not null.
| |
IsGZipSupported |
Returns true if GZip is supported by the client browser
| |
IsPostBack |
Returns true if current HttpMethod is POST.
| |
Respond400 |
Sets the 400 status (Bad Request) and ends the response.
| |
Respond403 |
Sets the 403 status (Forbidden) and ends the response.
| |
Respond404 |
Sets the 404 status (Not Found) and ends the response.
| |
Respond500 |
Sets the 500 status (Internal Server Error) and ends the response.
| |
Respond503 |
Sets the 503 status (Service Unavailable) and ends the response.
|