Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.withHttpEndpoint

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

Signature

methodwithHttpEndpointbuilder
Adds an HTTP endpoint
withHttpEndpoint(
port?: number,
targetPort?: number,
name?: string,
env?: string,
isProxied?: boolean): IResourceWithEndpoints
portnumberoptional
targetPortnumberoptional
namestringoptional
envstringoptional
isProxiedbooleanoptional
IResourceWithEndpoints

Defined on

This method is defined on the following type: