Skip to content

Set-UDContentType

SYNOPSIS

Sets the content-type HTTP header for a HTTP response.

SYNTAX

Set-UDContentType [-ContentType] <Object> [<CommonParameters>]

DESCRIPTION

Sets the content-type HTTP header for a HTTP response. This should be in control's Endpoint script blocks.

EXAMPLES

Example 1

PS C:\> Set-UDContentType -ContentType "application/xml"

Sets the content type to XML if an endpoint wanted to return XML.

PARAMETERS

-ContentType

The content type to set.

Type: System.Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
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

None

OUTPUTS

System.Object

NOTES

Back to top