Versions in this module Expand all Collapse all v0 v0.1.0 Mar 29, 2024 Changes in this version + type ResponseCache struct + GetKey func(r *http.Request) string + func NewResponseCache(expiration, cleanup time.Duration) *ResponseCache + func (c *ResponseCache) Get(r *http.Request) (key string, resp *http.Response, ok bool, err error) + func (c *ResponseCache) Put(key string, _ *http.Request, resp *http.Response) error + type RoundTripper struct + func NewRoundTripper(expiry, cleanup time.Duration, next http.RoundTripper) *RoundTripper + func (r *RoundTripper) Collect(ch chan<- prometheus.Metric) + func (r *RoundTripper) Describe(ch chan<- *prometheus.Desc) + func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)