transport

package
v0.13.0-alpha.27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToUserAndPass

func ToUserAndPass(userpass []string) (map[string]Userpass, error)

Types

type Option

type Option func(c *Transport)

func WithAllowHeadMethod

func WithAllowHeadMethod(allowHeadMethod bool) Option

func WithBaseTransport

func WithBaseTransport(baseTransport http.RoundTripper) Option

func WithDisableKeepAlives

func WithDisableKeepAlives(disableKeepAlives []string) Option

func WithLogger

func WithLogger(logger *slog.Logger) Option

func WithRetry

func WithRetry(retry int, retryInterval time.Duration) Option

func WithUserAndPass

func WithUserAndPass(userAndPass map[string]Userpass) Option

type Transport

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

func NewTransport

func NewTransport(opts ...Option) (*Transport, error)

func (*Transport) RoundTrip

func (c *Transport) RoundTrip(req *http.Request) (*http.Response, error)

type Userpass

type Userpass = authn.AuthConfig

Jump to

Keyboard shortcuts

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