transport

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H2C

type H2C struct {
	// contains filtered or unexported fields
}

H2C transport

func (*H2C) RoundTrip

func (t *H2C) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip implement http.RoundTripper

type HTTP

type HTTP struct {
	DialTimeout           time.Duration
	TCPKeepAlive          time.Duration
	DisableKeepAlives     bool
	MaxConn               int
	MaxIdleConns          int
	IdleConnTimeout       time.Duration
	ResponseHeaderTimeout time.Duration
	// contains filtered or unexported fields
}

HTTP transport

func (*HTTP) RoundTrip

func (t *HTTP) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip implement http.RoundTripper

type HTTPS

type HTTPS struct {
	DialTimeout           time.Duration
	TCPKeepAlive          time.Duration
	DisableKeepAlives     bool
	MaxConn               int
	MaxIdleConns          int
	IdleConnTimeout       time.Duration
	ResponseHeaderTimeout time.Duration
	TLSClientConfig       *tls.Config
	// contains filtered or unexported fields
}

HTTPS transport

func (*HTTPS) RoundTrip

func (t *HTTPS) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip implement http.RoundTripper

type Unix

type Unix struct {
	DisableKeepAlives     bool
	MaxIdleConns          int
	IdleConnTimeout       time.Duration
	ResponseHeaderTimeout time.Duration
	// contains filtered or unexported fields
}

Unix transport

func (*Unix) RoundTrip

func (t *Unix) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip implement http.RoundTripper

Jump to

Keyboard shortcuts

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