You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if you need to match an URL, you have to use one of the method-specific matchers: forGet(), forPost(), etc. But when you need to match a URL for some of the HTTP methods, you have to repeat yourself:
Sure! PRs welcome. This should be very quick & easy since the matchers already exist for internal use (defined here and here), it's just that it's not exposed in the rule builder API.
Currently if you need to match an URL, you have to use one of the method-specific matchers:
forGet()
,forPost()
, etc. But when you need to match a URL for some of the HTTP methods, you have to repeat yourself:I propose to add 2 new methods:
forMethod(method)
matcher, which is true whenmethod
matches the current methodforPath(path)
- matcher which is true whenpath
matches the current requested path.The text was updated successfully, but these errors were encountered: