Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCoalesced ¶
func NewCoalesced(next http.RoundTripper) http.RoundTripper
NewCoalesced returns a coalesced http roundtripper.
Types ¶
type Transport ¶
type Transport struct { // The RoundTripper interface actually used to make requests. // If nil, http.DefaultTransport is used. Transport http.RoundTripper // Cache is the http cache. Cache *cache.HttpCache // contains filtered or unexported fields }
Transport is the http filter implementing the http caching logic.
func NewCachedTransport ¶
NewTransport returns a new Transport with the provided Cache implementation.
Click to show internal directories.
Click to hide internal directories.