Skip to content
Docs Try Aspire
Docs Try

IResourceWithEndpoints.withHttpCommand

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... 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

Defined on

This method is defined on the following type: