A DESCRIPTION OF THE PROBLEM :
Add support for switching protocols. Currently, the HttpServer closes the input/output streams after sending a 101 status code, preventing connection upgrades.
To add support, we need to add logic to ExchangeImpl to detect incoming upgrade requests and the server responding with a 101 code with proper upgrade sematics. When these condition are met, an UndefLengthOutputStream should be used for the connection.
Add support for switching protocols. Currently, the HttpServer closes the input/output streams after sending a 101 status code, preventing connection upgrades.
To add support, we need to add logic to ExchangeImpl to detect incoming upgrade requests and the server responding with a 101 code with proper upgrade sematics. When these condition are met, an UndefLengthOutputStream should be used for the connection.