A collection of different matching strategies provided out-of-the-box by
If the set of matchers provided out-of-the-box is not enough for your specific testing needs
you can implement your own thanks to the
Fn closures that take an immutable
Request reference as input and return a boolean
as input automatically implement
Match and can be used where a matcher is expected.
Match’s documentation for examples.
Match all incoming requests, regardless of their method, path, headers or body.
Match part of the body of a request.
Match exactly the body of a request.
Match exactly the header of a request.
Match exactly the header name of a request. It checks that the header is present but does not validate the value.
Match exactly the method of a request.
Match exactly the path of a request.
Match the path of a request against a regular expression.
Match exactly the query parameter of a request.
Match an incoming request if its body is encoded as JSON and can be deserialized according to the specified schema.