Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithHttpsEndpoint

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) WithHttpsEndpoint(options ...*WithHttpsEndpointOptions) ResourceWithEndpoints

Signature

methodWithHttpsEndpointbuilder
Adds an HTTPS endpoint
WithHttpsEndpoint(options ...*WithHttpsEndpointOptions) ResourceWithEndpoints
options...*WithHttpsEndpointOptionsOptional settings, described under Options.

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

Port*float64An optional host port.
TargetPort*float64This is the port the resource is listening on. If the endpoint is used for the container, it is the container port.
Name*stringAn optional name of the endpoint. Defaults to "https" if not specified.
Env*stringAn optional name of the environment variable to inject.
IsProxied*boolSpecifies if the endpoint will be proxied by DCP. Defaults to null.
ResourceWithEndpoints

The resource builder.

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

Applies to

This method applies to the following types: