OptionalbodyExpected request body (uses "to satisfy" semantics for matching).
OptionalheadersExpected headers. Values can be strings (exact match) or RegExp patterns.
OptionalmethodHTTP method to match (case-insensitive).
OptionalonceShorthand for times: 1.
OptionaltimesExact number of times the request should have been made.
Options for request matching assertions.
Example