key property

String get key

What identifies this exchange: the method and the whole url, query included.

Exact, and no normalisation. A store that quietly answered ?page=1 with what it recorded for ?page=2 would be worse than no store at all, and a request carrying a nonce is better served by a stub that says so than by a matcher guessing which parts of a url matter.

Implementation

String get key => '$method $url';