byMethod method
Enforces that both requests have the same HTTP method.
MatchRules rules = MatchRules().byMethod();
Implementation
MatchRules byMethod() {
_by((Request received, Request recorded) {
return received.method == recorded.method;
});
return this;
}