Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceWithEndpoints.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().

Defined on

A marker interface declares no methods of its own in Go. Its functions are declared on the concrete types they apply to.

Applies to

This function applies to the following types: