Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify header/query_param matching with custom matcher #100

Closed
Thiht opened this issue Jun 2, 2020 · 0 comments · Fixed by #101
Closed

Simplify header/query_param matching with custom matcher #100

Thiht opened this issue Jun 2, 2020 · 0 comments · Fixed by #101
Labels
feature-request New feature or request

Comments

@Thiht
Copy link
Collaborator

Thiht commented Jun 2, 2020

The following syntaxes are supported:

headers:
  X-Example-Header: test
headers:
  # multiple occurrences
  X-Example-Header: [test, test2, test3]
headers:
  X-Example-Header:
    # array is required even for a single matcher
    - matcher: ShouldMatch
      value: test.*

The following should be allowed as well:

headers:
  X-Example-Header: 
    # no array
    matcher: ShouldMatch
    value: test.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant