util

package
v0.0.0-...-e72d39b Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: AGPL-3.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoliteTripper

type PoliteTripper struct {
	PerHostDelay time.Duration
	// contains filtered or unexported fields
}

PoliteTripper is a http.RoundTripper implementation which imposes a minimum per-host delay.

c := &http.Client{
	Transport: NewPoliteTripper(),
}

func NewPoliteTripper

func NewPoliteTripper() *PoliteTripper

func (*PoliteTripper) RoundTrip

func (this *PoliteTripper) 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