Skip to content
DocsTry Aspire
DocsTry

withHttpCommand

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

Signature

methodwithHttpCommandbuilder
Adds an HTTP resource command
withHttpCommand(
path: string,
displayName: string,
options?: HttpCommandExportOptions): IResourceWithEndpoints
pathstring
displayNamestring
optionsHttpCommandExportOptionsoptional
IResourceWithEndpoints

Applies to

This method applies to the following types: