RequestHelper Class |
Namespace: CMS.Helpers
public static class RequestHelper
The RequestHelper type exposes the following members.
Name | Description | |
---|---|---|
AllowGZip |
Allow GZip of the output.
| |
AllowResourceCompression |
Gets whether the resource compression is enabled.
| |
GetFileEndRequest |
Gets whether the request is completed or ended when request processing is finished.
| |
HttpMethod |
Gets the HTTP data transfer method (such as GET, POST) used by client.
| |
PendingRequests |
Counter of currently pending requests.
| |
TotalGetFileRequests |
Counter of GetFile requests.
| |
TotalNonPageRequests |
Counter of NonPage requests.
| |
TotalPageNotFoundRequests |
Counter of Page not found requests.
| |
TotalPageRequests |
Counter of Total Content page requests.
| |
TotalPageRobotsTxtRequests |
Counter of Total page Robots.txt requests.
| |
TotalSystemPageRequests |
Counter of Total System page requests.
|
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.
| |
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.
| |
IsWebDAVPropfindRequest |
Determines whether current request is WebDAV PROPFIND request and url is application path.
| |
IsWebDAVRequest |
Determines whether current request is WebDAV request
| |
ResetPerformanceSettings |
Sets all the performance settings to null and causes them to be reloaded.
| |
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.
|