requestMatchesHttpMethod function
A function to build a CharlatanRequestMatcher that matches if the http
method of the request matches the provided method
.
Implementation
CharlatanRequestMatcher requestMatchesHttpMethod(String method) =>
(request) => request.method.toLowerCase() == method.toLowerCase();