Documentation ¶
Index ¶
- Constants
- func GetCacheControl(r *http.Request) (value string)
- func GetServeStatus(r *http.Request) (status int)
- func Redirect(destination string, w http.ResponseWriter, r *http.Request)
- func Serve204(w http.ResponseWriter, r *http.Request)
- func Serve400(w http.ResponseWriter, r *http.Request)
- func Serve401(w http.ResponseWriter, r *http.Request)
- func Serve403(w http.ResponseWriter, r *http.Request)
- func Serve404(w http.ResponseWriter, r *http.Request)
- func Serve405(w http.ResponseWriter, r *http.Request)
- func Serve500(w http.ResponseWriter, r *http.Request)
- func Serve502(w http.ResponseWriter, r *http.Request)
- func Serve503(w http.ResponseWriter, r *http.Request)
- func ServeBasic401(w http.ResponseWriter, r *http.Request)
- func SetCacheControl(value string, w http.ResponseWriter, r *http.Request) (modified *http.Request)
- func SetServeStatus(status int, r *http.Request) (modified *http.Request)
- func StatusHasBody(status int) (allowed bool)
Constants ¶
View Source
const ( StatusResponseKey request.Key = "ServeStatusResponse" CacheControlKey request.Key = "Cache-Control" )
Variables ¶
This section is empty.
Functions ¶
func GetCacheControl ¶ added in v0.2.8
func GetServeStatus ¶ added in v0.2.2
func ServeBasic401 ¶
func ServeBasic401(w http.ResponseWriter, r *http.Request)
func SetCacheControl ¶ added in v0.2.8
func SetServeStatus ¶ added in v0.2.2
func StatusHasBody ¶ added in v0.2.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.