v0.29.3 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 1,126




This section is empty.


This section is empty.


func Negotiate

func Negotiate(upgrader Upgrader, client *http.Client, req *http.Request, protocols ...string) (httpstream.Connection, string, error)

Negotiate opens a connection to a remote server and attempts to negotiate a SPDY connection. Upon success, it returns the connection and the protocol selected by the server. The client transport must use the upgradeRoundTripper - see RoundTripperFor.

func NewDialer

func NewDialer(upgrader Upgrader, client *http.Client, method string, url *url.URL) httpstream.Dialer

NewDialer will create a dialer that connects to the provided URL and upgrades the connection to SPDY.


type Upgrader

type Upgrader interface {
	// NewConnection validates the response and creates a new Connection.
	NewConnection(resp *http.Response) (httpstream.Connection, error)

Upgrader validates a response from the server after a SPDY upgrade.

func RoundTripperFor

func RoundTripperFor(config *restclient.Config) (http.RoundTripper, Upgrader, error)

RoundTripperFor returns a round tripper and upgrader to use with SPDY.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL