Skip to content
DocsTry Aspire
DocsTry

withHttpsEndpoint

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withHttpsEndpoint(
port?: number,
targetPort?: number,
name?: string,
env?: string,
isProxied?: boolean): IResourceWithEndpoints;
}

Signature

methodwithHttpsEndpointbuilder
Adds an HTTPS endpoint
withHttpsEndpoint(
port?: number,
targetPort?: number,
name?: string,
env?: string,
isProxied?: boolean): IResourceWithEndpoints
portnumberoptional
targetPortnumberoptional
namestringoptional
envstringoptional
isProxiedbooleanoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: