YarpRoute.WithMatchMethods
Method
type YarpRoute interface { // ... 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) YarpRouteParameters
methods[]string Returns
YarpRoute Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: