1

Provide “and(matcher)” and “or(matcher)” methods to enum matchers · Issue #93 ·...

 1 month ago
source link: https://github.com/plabayo/rama/issues/93
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Provide “and(matcher)” and “or(matcher)” methods to enum matchers #93

GlenDC opened this issue Mar 16, 2024 · 0 comments

Comments

Member

We already have in these http/stream enum matchers and_* and or_* methods. However currently there is no way to do complex chaining for the matcher of that passed in argument.

eg you can’t chain these, or negate them.

Before:

HttpMatcher::method(get).and_header(“foo”).negate()

the above is wrong as you would get !(M AND H), instead of the desired M AND !H, which now would be possible as a result of completing this issue:

HttpMatcher::method(get).and(HttpMatcher::header(“foo”).negate())

Same applies to the stream/L4 enum matcher.

GlenDC

added enhancement New feature or request good first issue Good for newcomers easy An easy issue to pick up for anyone. mentor available A mentor is available to help you through the issue.

labels

Mar 16, 2024

GlenDC

added this to the v0.2 milestone

Mar 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

No one assigned

Labels
easy An easy issue to pick up for anyone. enhancement New feature or request good first issue Good for newcomers mentor available A mentor is available to help you through the issue.
Projects

None yet

Milestone

v0.2

Development

No branches or pull requests

1 participant

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK