You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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 thecontains
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 sendsConnection: keep-alive, Upgrade
instead ofConnection: Upgrade
. It would prevent re-implementingthat in different places, for example:vert.x/src/main/java/io/vertx/core/http/impl/Http1xServerConnection.java
Lines 359 to 365 in 244b910
vert.x/src/main/java/io/vertx/core/http/impl/Http1xUpgradeToH2CHandler.java
Lines 52 to 75 in 244b910
containsValue
to look for different values on the same loop.)vert.x/src/main/java/io/vertx/core/http/impl/HttpUtils.java
Lines 971 to 974 in 244b910
The text was updated successfully, but these errors were encountered: