Hey Wiremock fam, is there a way to do regex mappi...
# help
a
Hey Wiremock fam, is there a way to do regex mapping on Headers when using Wiremock? Trying to filter based on whether incoming header contains a specific string value or not. Does just using
contains
work?
l
Yeah,
contains
should work:
Copy code
"headers": {
            "Accept": {
                "contains": "xml"
            }
        },
Or if you want to match the whole string you can use
equalTo
1
I think you can also use
matches
if you want to match using regex