Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cache ¶
func Cache(w http.ResponseWriter, r *http.Request, mimeType, etag string, content []byte, duration time.Duration)
Cache returns a response with caching headers.
func Compress ¶
func Compress(w http.ResponseWriter, r *http.Request, data []byte)
Compress the response sent to the browser.
func NotModified ¶
func NotModified(w http.ResponseWriter)
NotModified sends a response with a 304 status code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.