Class HttpRequestPropertiesMatcher

  • All Implemented Interfaces:
    HttpRequestMatcher, Matcher<RequestDefinition>

    public class HttpRequestPropertiesMatcher
    extends AbstractHttpRequestMatcher
    Matches HTTP request properties against expectation criteria.

    Null/Blank Matcher Behavior: When a specific matcher (e.g., method, path, headers) is null or blank, it matches all values for that property. This allows expectations to match broadly without specifying every field. For example:

    • No method matcher → matches any HTTP method (GET, POST, etc.)
    • No path matcher → matches any request path
    • No header matcher → matches requests with any headers

    This "filter" behavior improves UX: unspecified fields act as wildcards, so users can create simple expectations without boilerplate "match anything" patterns.

    Author:
    jamesdbloom