diff --git a/Types/HttpListener/HttpListenerRequest/Alias.psd1 b/Types/HttpListener/HttpListenerRequest/Alias.psd1 index 4b67c95e8..670066da5 100644 --- a/Types/HttpListener/HttpListenerRequest/Alias.psd1 +++ b/Types/HttpListener/HttpListenerRequest/Alias.psd1 @@ -1,4 +1,5 @@ @{ IP = 'IPAddress' + HostHeader = 'HostName' QueryParameters = 'QueryParameter' } \ No newline at end of file diff --git a/Types/HttpListener/HttpListenerRequest/get_HostName.ps1 b/Types/HttpListener/HttpListenerRequest/get_HostName.ps1 new file mode 100644 index 000000000..9e747c11e --- /dev/null +++ b/Types/HttpListener/HttpListenerRequest/get_HostName.ps1 @@ -0,0 +1,8 @@ +<# +.SYNOPSIS + Gets the host name of the request. +.DESCRIPTION + Gets the host name of the request (the domain being requested). +#> +param() +$this.Url.DNSSafeHost