mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-27 09:12:31 +00:00
fc4b9656cd
Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io> |
||
---|---|---|
.. | ||
.travis.yml | ||
context_test.go | ||
context.go | ||
doc.go | ||
LICENSE | ||
README.md |
context
gorilla/context is a general purpose registry for global request variables.
Note: gorilla/context, having been born well before
context.Context
existed, does not play well with the shallow copying of the request thathttp.Request.WithContext
(added to net/http Go 1.7 onwards) performs. You should either use just gorilla/context, or moving forward, the newhttp.Request.Context()
.
Read the full documentation here: http://www.gorillatoolkit.org/pkg/context