Versions in this module Expand all Collapse all v1 v1.5.1 Feb 8, 2017 v1.5.0 Oct 23, 2016 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) + 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)