AuthMatcher.byMethodAndUrl constructor

const AuthMatcher.byMethodAndUrl(
  1. bool match(
    1. String method,
    2. String url
    )
)

provide lambda for method and url

method will be upper case

url will be all but queries

Implementation

const factory AuthMatcher.byMethodAndUrl(
  bool Function(String method, String url) match,
) = AuthMatcherByMethodAndUrlImpl;