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
Enhancement Description WebSocketClient should have an easy API to access (at least) the upgrade response, so that applications can inspect response status code and headers (and possibly content).
This is currently not available because the UpgradeListener passed to WebSocketClient.connect(...) is only invoked when the upgrade is successful.
In case of failures, or non-101 responses, only the WebSocket endpoint is notified, but the response is not available.
The text was updated successfully, but these errors were encountered:
…#10761)
* Allow UpgradeListener to see Response in case of non-successful upgrade
* Using a boolean to track whether request was upgraded
* Improved exception handling in HttpUpgraderOverHTTP.
* Avoid using log warnings in CoreClientUpgradeRequest.
* Delayed setting of this.upgraded after the last throw statement.
Signed-off-by: Lachlan Roberts <[email protected]>
Signed-off-by: Simone Bordet <[email protected]>
Co-authored-by: Simone Bordet <[email protected]>
Jetty version(s)
12+
Enhancement Description
WebSocketClient
should have an easy API to access (at least) the upgrade response, so that applications can inspect response status code and headers (and possibly content).This is currently not available because the
UpgradeListener
passed toWebSocketClient.connect(...)
is only invoked when the upgrade is successful.In case of failures, or non-101 responses, only the WebSocket endpoint is notified, but the response is not available.
The text was updated successfully, but these errors were encountered: