httptransport

package
v0.0.0-...-b1bbf48 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTransport = &http.Transport{
	Proxy:                 http.ProxyFromEnvironment,
	ForceAttemptHTTP2:     false,
	MaxIdleConns:          100,
	IdleConnTimeout:       90 * time.Second,
	TLSHandshakeTimeout:   10 * time.Second,
	ExpectContinueTimeout: 1 * time.Second,
}

Functions

This section is empty.

Types

type TransportRewrite

type TransportRewrite struct {
	Transport http.RoundTripper
	// contains filtered or unexported fields
}

func NewTransportRewrite

func NewTransportRewrite(originRoute *url.URL, redirectRoute string) *TransportRewrite

func (*TransportRewrite) RoundTrip

func (t *TransportRewrite) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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