Closed
Description
What version of Go are you using (go version
)?
go1.10 linux/amd64
Summary
Implement the https://tools.ietf.org/html/draft-ietf-httpbis-h2-websockets-07 draft for Websockets over HTTP/2 to discover any implementation/API issues before the document is finalized.
Initial review shows several concerns:
- A new SETTINGS frame value, SETTINGS_ENABLE_CONNECT_PROTOCOL needs to be sent when configured (or always).
- How is it configured?
- A
CONNECT
request with:protocol
gets the normal treatment of the:authority
pseudoheader (equivalent to Host: header). - Must process the new 'CONNECT with
:protocol
' requests in some way. There isn't an existing field in Request to handle this.- We could mandate that a Hijacker interface call is performed if support for the protocol is registered, but this is error-prone on the programmer side.