Documentation ¶
Overview ¶
Package context allows for storing values on a *Request and is a middleware implementation of github.com/gorilla/context.
Index ¶
- func Clear(r *http.Request)
- func Delete(r *http.Request, key interface{})
- func Get(r *http.Request, key interface{}) interface{}
- func GetOk(r *http.Request, key interface{}) (interface{}, bool)
- func Initialize() func(http.ResponseWriter, *http.Request, http.HandlerFunc)
- func Set(r *http.Request, key, val interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clear ¶
Clear removes all values stored for a given request.
This is usually called by a handler wrapper to clean up request variables at the end of a request lifetime. See ClearHandler().
func Initialize ¶
func Initialize() func(http.ResponseWriter, *http.Request, http.HandlerFunc)
Scopes the Request context so that Set, Get, GetOk, Delete and Clear may be used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.