We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 842e1aa commit 51321ebCopy full SHA for 51321eb
Types/HttpListener/Request/Alias.psd1
@@ -3,4 +3,5 @@
3
HostHeader = 'HostName'
4
Subdomains = 'Subdomain'
5
QueryParameters = 'QueryParameter'
6
+ XHR = 'IsXmlHttpRequest'
7
}
Types/HttpListener/Request/get_IsXmlHttpRequest.ps1
@@ -0,0 +1,8 @@
1
+<#
2
+.SYNOPSIS
+ Determines if the request is an AJAX request.
+.DESCRIPTION
+ Determines if the request was made with XmlHttpRequest.
+#>
+return ($this.Headers -and
8
+ ($this.Headers["X-Requested-With"] -eq "XMLHttpRequest"))
0 commit comments