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
{{ message }}
Repository navigation
Use websocket over varying http protocols using a single client #12659
Currently when upgrading to a websocket, the http version over which it will happen is determined by the capabilities of the underlying http client. This means that there must me one instance setup for each, if we want to specify the version on a per-request basis. In order to be able to use a single instance of the http client, the websocket client code should provide a way to specify in the upgrade request which http version to be used.
Example use case: a transparent jetty proxy, using one http and websocket client, which is setting the http version of the upgrade to the target to be the same as between it and the source. The proxy uses secured transports, similar to the examples in org.eclipse.jetty.proxy.ClientAuthProxyTest(ie it has the proper ssl certificates and knows how to talk to the target on behalf of the source).
Activity
PR #12659 - allow HttpVersion to be set on WebSocket ClientUpgradeReq…
Issue #12659 - allow HttpVersion to be set on WebSocket ClientUpgrade…
Merge pull request #13185 from jetty/jetty-12.1.x-12659-websocket-upg…
lachlan-roberts commentedon Jun 10, 2025
This feature has been added in the
12.1.xbranch and will be released with12.1.0.