Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithMatchMethods

Method
📦 Aspire.Hosting.Yarp v17.0.0
func (YarpRoute) 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().

Applies to

This method applies to the following types: