YarpRoute.WithMatchMethods

Method
📦 Aspire.Hosting.Yarp v17.0.0
type YarpRoute interface {
// ... omitted for brevity
WithMatchMethods(methods []string) YarpRoute
}

Signature

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

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: