unix_transport

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(socketPath string) *http.Transport

func NewWithDial

func NewWithDial(socketPath string, dial DialFunc) *http.Transport

func NewWithTLS

func NewWithTLS(socketPath string, tlsConfig *tls.Config) *http.Transport

Types

type DialFunc

type DialFunc func(network, addr string) (net.Conn, error)

type UnixRoundTripper

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

func NewUnixRoundTripper

func NewUnixRoundTripper(path string) *UnixRoundTripper

func NewUnixRoundTripperTls

func NewUnixRoundTripperTls(path string, tlsConfig *tls.Config) *UnixRoundTripper

func (UnixRoundTripper) RoundTrip

func (roundTripper UnixRoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

The RoundTripper (http://golang.org/pkg/net/http/#RoundTripper) for the socket transport dials the socket each time a request is made.

Jump to

Keyboard shortcuts

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