byEverything method

MatchRules byEverything()

Enforces that both requests are the exact same (headers, body, etc.).

MatchRules rules = MatchRules().byEverything();

Implementation

MatchRules byEverything() {
  _by((Request received, Request recorded) {
    String receivedRequest = jsonEncode(received);
    String recordedRequest = jsonEncode(recorded);
    return receivedRequest == recordedRequest;
  });
  return this;
}