type Object …
type ObjectResults …
func CachableRequestObject(obj *Object, rv *ObjectResults) { … }
func CachableResponseObject(obj *Object, rv *ObjectResults) { … }
func CachableObject(obj *Object, rv *ObjectResults) { … }
var twentyFourHours …
const debug …
func ExpirationObject(obj *Object, rv *ObjectResults) { … }
func UsingRequestResponse(req *http.Request,
statusCode int,
respHeaders http.Header,
privateCache bool) ([]Reason, time.Time, error) { … }
func UsingRequestResponseWithObject(req *http.Request,
statusCode int,
respHeaders http.Header,
privateCache bool) ([]Reason, time.Time, []Warning, *Object, error) { … }
func hasFreshness(respDir *ResponseCacheDirectives, respHeaders http.Header, respExpires time.Time, privateCache bool) bool { … }
func cachableStatusCode(statusCode int) bool { … }