Class HttpRequestExtensions
Extends Microsoft.AspNetCore.Http.HttpRequest with a method to determine whether the request was initiated using AJAX.
Namespace: XploRe.AspNetCore.Mvc
Assembly: XploRe.AspNetCore.Mvc.dll
Syntax
public static class HttpRequestExtensions : Object
Methods
Name | Description |
---|---|
IsAjax(HttpRequest) | Verifies whether the request has been initiated via AJAX by checking whether the "X-Requested-With" header is set to "XMLHttpRequest". |