Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseIsToLarge = errors.New("response body is to large for the cache")
Functions ¶
This section is empty.
Types ¶
type CacheTransport ¶
type CacheTransport struct { Cache *cache.LRUCache Transport http.RoundTripper // underlying transport (or default if nil) }
type LoggedTransport ¶
type LoggedTransport struct { Logger func(v ...interface{}) Transport http.RoundTripper // underlying transport (or default if nil) }
A LoggedTransport prints URLs and timings for each HTTP request.
type ResponseBodyLimitRoundTripper ¶
type ResponseBodyLimitRoundTripper struct { Limit int64 Transport http.RoundTripper // underlying transport (or default if nil) }
Click to show internal directories.
Click to hide internal directories.