Skip to content
Docs Try Aspire
Docs Try

withMatchMethods

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

Signature

method withMatchMethods
Only match requests that use these optional HTTP methods. E.g. GET, POST.
withMatchMethods(methods: string[]): YarpRoute
methods string[]
YarpRoute

Applies to

This method applies to the following types: