Versions in this module Expand all Collapse all v0 v0.0.1 Jan 5, 2023 Changes in this version + const HeaderAcceptedProtocolVersions + const HeaderConnection + const HeaderProtocolVersion + const HeaderUpgrade + func Handshake(req *http.Request, w http.ResponseWriter, serverProtocols []string) (string, error) + func IsUpgradeRequest(req *http.Request) bool + func NoOpNewStreamHandler(stream Stream, replySent <-chan struct{}) error + type Connection interface + Close func() error + CloseChan func() <-chan bool + CreateStream func(headers http.Header) (Stream, error) + RemoveStreams func(streams ...Stream) + SetIdleTimeout func(timeout time.Duration) + type Dialer interface + Dial func(protocols ...string) (Connection, string, error) + type NewStreamHandler func(stream Stream, replySent <-chan struct{}) error + type ResponseUpgrader interface + UpgradeResponse func(w http.ResponseWriter, req *http.Request, newStreamHandler NewStreamHandler) Connection + type Stream interface + Headers func() http.Header + Identifier func() uint32 + Reset func() error + type UpgradeRoundTripper interface + NewConnection func(resp *http.Response) (Connection, error)