Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveConnectionHeaders ¶
RemoveConnectionHeaders removes hop-by-hop headers listed in the "Connection" header of h. See https://tools.ietf.org/html/rfc7230#section-6.1
Types ¶
type Limiter ¶
type Limiter interface {
// Wait blocks until limiter permits an event to happen.
// It returns an error if the Context is
// canceled, or the expected wait time exceeds the Context's Deadline.
Wait(context.Context) error
}
Limiter defines the interface to perform client-side request rate limiting. You can use golang.org/x/time/rate.Limiter as an implementation of this interface.
type RateLimitingRoundTripper ¶
type RateLimitingRoundTripper struct {
Delegate http.RoundTripper
Limiter Limiter
}
Click to show internal directories.
Click to hide internal directories.