unix_transport

package
v0.0.0-...-7862c31 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(socketPath string) *http.Transport

func NewWithTLS

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

Types

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