Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPCache ¶
type HTTPCache interface { CacheHandler(w http.ResponseWriter, r *http.Request) StatusPageHandler(w http.ResponseWriter, r *http.Request) }
HTTPCache ...
func NewHTTPCache ¶
func NewHTTPCache(cache cache.Cache, accessLogger cache.Logger, errorLogger cache.Logger, readOnly bool) HTTPCache
NewHTTPCache returns a new instance of the cache. accessLogger will print one line for each HTTP request to stdout. errorLogger will print unexpected server errors. Inexistent files and malformed URLs will not be reported.
Click to show internal directories.
Click to hide internal directories.