Skip to content

Commit

Permalink
feat: HTtpListenerRequest.get_HostName ( Fixes #1118 )
Browse files Browse the repository at this point in the history
  • Loading branch information
James Brundage committed May 4, 2024
1 parent e5a3b25 commit f0e824e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Types/HttpListener/HttpListenerRequest/Alias.psd1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@{
IP = 'IPAddress'
HostHeader = 'HostName'
QueryParameters = 'QueryParameter'
}
8 changes: 8 additions & 0 deletions Types/HttpListener/HttpListenerRequest/get_HostName.ps1
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f0e824e

Please sign in to comment.