Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHttpsUpgrade

Method
📦 Aspire.Hosting.Azure.AppService v17.0.0
func (AzureAppServiceEnvironmentResource) WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureAppServiceEnvironmentResource

Signature

methodWithHttpsUpgradebuilder
Configures whether HTTP endpoints should be automatically upgraded to HTTPS for the Azure App Service environment. By default, HTTP endpoints are upgraded to HTTPS for security and WebSocket compatibility.
WithHttpsUpgrade(options ...*WithHttpsUpgradeOptions) AzureAppServiceEnvironmentResource
options...*WithHttpsUpgradeOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*WithHttpsUpgradeOptions argument.

Upgrade*boolWhether to upgrade HTTP endpoints to HTTPS. Default is true.
AzureAppServiceEnvironmentResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: