class HTTP::Cache
def cache_lookup(request)
-
(HTTP::Response::Caching, nil)
- the cached response for the request
def cache_lookup(request) return nil if request.skips_cache? rack_resp = metastore.lookup(request, entitystore) return if rack_resp.nil? HTTP::Response.new( rack_resp.status, "1.1", rack_resp.headers, stringify(rack_resp.body) ).caching end