mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-07 00:05:02 -04:00
this is achieved by a rework of the upgrade plugin, and the addition of an h2 upgrade plugin. The idea is the following: if a response carries an Upgrade header, and there's a handler for it, we should go for it. The difference is: * when the response is 101, this means that the negotiation must take place before the actual response comes in; * when the response is 200, upgrading means reconnecting to the channel, and assume the new protocol for subsequent requests only.