- func NewClientConnection(conn net.Conn) (httpstream.Connection, error)
- func NewResponseUpgrader() httpstream.ResponseUpgrader
- func NewRoundTripper(tlsConfig *tls.Config) httpstream.UpgradeRoundTripper
- func NewServerConnection(conn net.Conn, newStreamHandler httpstream.NewStreamHandler) (httpstream.Connection, error)
- type SpdyRoundTripper
const HeaderSpdy31 = "SPDY/3.1"
This section is empty.
func NewClientConnection ¶
NewClientConnection creates a new SPDY client connection.
func NewResponseUpgrader ¶
NewResponseUpgrader returns a new httpstream.ResponseUpgrader that is capable of upgrading HTTP responses using SPDY/3.1 via the spdystream package.
func NewRoundTripper ¶
NewRoundTripper creates a new SpdyRoundTripper that will use the specified tlsConfig.
type SpdyRoundTripper ¶
SpdyRoundTripper knows how to upgrade an HTTP request to one that supports multiplexed streams. After RoundTrip() is invoked, Conn will be set and usable. SpdyRoundTripper implements the UpgradeRoundTripper interface.
func NewSpdyRoundTripper ¶ added in v0.13.0
NewSpdyRoundTripper creates a new SpdyRoundTripper that will use the specified tlsConfig. This function is mostly meant for unit tests.
func (*SpdyRoundTripper) NewConnection ¶
NewConnection validates the upgrade response, creating and returning a new httpstream.Connection if there were no errors.