Write PodeHtmlResponse - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Responses schema: 2.0.0
Writes HTML data to the Response.
Write-PodeHtmlResponse [-Value] <Object> [-StatusCode <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Write-PodeHtmlResponse -Path <String> [-StatusCode <Int32>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Writes HTML data to the Response, setting the content type accordingly.
Write-PodeHtmlResponse -Value "Raw HTML can be placed here"
Write-PodeHtmlResponse -Value @{ Message = 'Hello, all!' }
Write-PodeHtmlResponse -Path 'E:/Site/About.html'
The path to a HTML file.
Type: String
Parameter Sets: File
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe status code to set against the response.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: 200
Accept pipeline input: False
Accept wildcard characters: FalseA String, PSObject, or HashTable value.
Type: Object
Parameter Sets: Value
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.