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

Expose containsValue method on the MultiMap interface #5089

Open
machine424 opened this issue Feb 2, 2024 · 0 comments
Open

Expose containsValue method on the MultiMap interface #5089

machine424 opened this issue Feb 2, 2024 · 0 comments

Comments

@machine424
Copy link
Contributor

Describe the feature

The containsValue(name, value, ...) method in HeadersMultiMap is meant to check the existence of a value in a multi values key/header.

I'll be useful to expose this method into the MultiMap interface: check for a sub-value (for now, only the contains method is defined, which only checks for value equality)

This will help with checks on the Connection header for websocket upgrades e.g. given that Firefox sends Connection: keep-alive, Upgrade instead of Connection: Upgrade. It would prevent re-implementingthat in different places, for example:

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

No branches or pull requests

1 participant