on method
Register a handler that matches when method and pathOrRegex
match the incoming request. Last-added handlers win.
Implementation
MockHttpClient on(
String method,
Pattern pathOrRegex,
MockResponder responder,
) {
_handlers.add(_Handler(method.toUpperCase(), pathOrRegex, responder));
return this;
}