Add WebSocket :protocol extension per RFC 9220.
Attempt to add WebSocket support to h3.
I don't know any server that supports RFC 9220, so it is untested.
Hi. you can add some unit test. support rfc9220 server: https://github.com/ngtcp2/nghttp3
What should the unit test test? as_str / from_str implementations?
Other implementation of RFC9220:
https://github.com/aiortc/aioquic
Hi. you can add some unit test. support rfc9220 server: https://github.com/ngtcp2/nghttp3
It is appropriate to add a heavy dev-dependency for a such a trivial change?
Based on what I see on other implementations of websocket, h3 should only provide the minimum at http level to be able to establish websockets connection, which is, in short, the ability to set CONNECT pseudo-headers, and maybe send the settings frames, besides that, looks like the remaining parts can still take advantage of existing frame parsing libraries.