transport

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomTransport

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

CustomTransport holds DefaultTransport configuration and is used to for custom http error handling

func NewCustomTransport

func NewCustomTransport(t http.RoundTripper, opt CustomTransportOptions) *CustomTransport

NewCustomTransport returns new CustomTransport struct

func (*CustomTransport) RoundTrip

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

RoundTrip method used to retry http errors

type CustomTransportOptions

type CustomTransportOptions struct {
	Timeout *time.Duration
}

CustomTransportOptions Set options for CustomTransport

Jump to

Keyboard shortcuts

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