Documentation ¶
Overview ¶
Package miscctx provides miscellaneous context items which can be associated with an HTTP request.
Package miscctx provides miscellaneous context items which can be associated with an HTTP request.
Index ¶
- func GetCSPNonce(req *http.Request) string
- func GetCanOutputTime(req *http.Request) bool
- func GetResponseWriter(req *http.Request) http.ResponseWriter
- func RedirectTo(req *http.Request, code int, url string)
- func SeeOther(req *http.Request, url string)
- func SetCanOutputTime(req *http.Request)
- func SetResponseWriter(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCSPNonce ¶
func GetCanOutputTime ¶
func GetResponseWriter ¶
func GetResponseWriter(req *http.Request) http.ResponseWriter
Get the response writer which has been set as corresponding to the given request.
func SetCanOutputTime ¶
func SetResponseWriter ¶
func SetResponseWriter(rw http.ResponseWriter, req *http.Request)
Set the response writer corresponding to the given request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.