Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.withHttpCommand

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

Defined on

This method is defined on the following type: