Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LastModified ¶
LastModified replies to the HTTP request in such a way that it deals with conditional GETs by sending out a "Last-Modified" HTTP response header, and properly dealing with a "If-Modified-Since" HTTP request header.
Note that this request an http.Handler. You will still need to call the returned handler's ServerHTTP method.
func LastModifiedServeHTTP ¶
func LastModifiedServeHTTP(w http.ResponseWriter, r *http.Request, modtime time.Time, subhandler http.Handler)
LastModifiedServeHTTP is similar to the LastModified func, expect that instead of returning a handler, it creates the handle and then immediately calls its ServerHTTP method.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.