Skip to content
Docs Try Aspire
Docs Try

withHttpCommand

Method
📦 Aspire.Hosting v13.3.0
interface ContainerResource {
// ... omitted for brevity
withHttpCommand(
path: string,
displayName: string,
options?: HttpCommandExportOptions): IResourceWithEndpoints;
}

Signature

method withHttpCommand builder
Adds an HTTP resource command
withHttpCommand(
path: string,
displayName: string,
options?: HttpCommandExportOptions): IResourceWithEndpoints
path string
displayName string
options HttpCommandExportOptions optional
IResourceWithEndpoints

Applies to

This method applies to the following types: