Skip to content

Receive HttpContext

github-actions edited this page Jul 25, 2026 · 1 revision

external help file: Pretendpoint.dll-Help.xml Module Name: Pretendpoint online version: https://docs.microsoft.com/dotnet/api/system.net.httplistener schema: 2.0.0

Receive-HttpContext

SYNOPSIS

Listens for an HTTP request and returns an HTTP request & response.

SYNTAX

Receive-HttpContext [-Listener] <HttpListener> [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

{{ Fill in the Description }}

EXAMPLES

Example 1

PS C:\> $context = Receive-WebRequest $http

Accepts an HTTP request returns it in an HTTP context object.

PARAMETERS

-Listener

The HTTP listener to receive the request through.

Type: HttpListener
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

System.Net.HttpListener

OUTPUTS

System.Object

NOTES

RELATED LINKS

Clone this wiki locally