Skip to content
Docs Try Aspire

YarpRoute.withMatchMethods

Method
📦 Aspire.Hosting.Yarp v13.2.0
interface YarpRoute {
// ... omitted for brevity
withMatchMethods(methods: string[]): YarpRoute;
}

Signature

method withMatchMethods
Matches requests that use the specified HTTP methods.
withMatchMethods(methods: string[]): YarpRoute
methods string[]
YarpRoute

Defined on

This method is defined on the following type: