external help file | Module Name | online version | schema |
---|---|---|---|
Pretendpoint.dll-Help.xml |
Pretendpoint |
2.0.0 |
Creates and starts an HTTP listener, for testing HTTP clients.
Start-HttpListener [-Port] <Int32[]> [-AuthenticationSchemes <AuthenticationSchemes>] [-Realm <String>]
[-IgnoreWriteExceptions] [<CommonParameters>]
{{ Fill in the Description }}
PS C:\> $Listener = Start-HttpListener 8080
Creates and starts an HTTP listener at http://localhost:8080/
Ports on the localhost to bind to.
Type: Int32[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Client authentication methods to support.
Type: AuthenticationSchemes
Parameter Sets: (All)
Aliases:
Accepted values: None, Digest, Negotiate, Ntlm, IntegratedWindowsAuthentication, Basic, Anonymous
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The RFC2617 authentication realm.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Indicates that response writes shouldn't generate exceptions.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://docs.microsoft.com/dotnet/api/system.net.httplistener