Versions in this module Expand all Collapse all v1 v1.0.1 Jun 6, 2021 Changes in this version + type HttpCache struct + func New(options *Options) *HttpCache + func NewDefault() *HttpCache + func (c *HttpCache) Handler(h http.Handler) http.Handler + func (c *HttpCache) ServeHTTP(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc) + type Options struct + AllowedVerbs []string + MaxAge int64 + Size int + type ResponseRecorder interface + Body func() *bytes.Buffer + Code func() int + Result func() *http.Response + func NewResponseRecorder() ResponseRecorder