Documentation ¶
Overview ¶
Package httpcache provides a simple http.RoundTripper to cache http responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct { Transport http.RoundTripper // used to make actual requests. Cache Cache }
Transport implements http.RoundTripper and returns responses from a cache.
func Custom ¶
func Custom(t http.RoundTripper, c Cache) *Transport
Custom uses t to make actual requests.
Click to show internal directories.
Click to hide internal directories.