context

A golang registry for global request variables.

Github stars Tracking Chart

context

GoDoc
CircleCI

? This library is in maintenance mode.

⚠⚠⚠ Note ⚠⚠⚠ gorilla/context, having been born well before context.Context existed, does not play well
with the shallow copying of the request that http.Request.WithContext (added to net/http Go 1.7 onwards) performs.

Using gorilla/context may lead to memory leaks under those conditions, as the pointers to each http.Request become "islanded" and will not be cleaned up when the response is sent.

You should use the http.Request.Context() feature in Go 1.7.

gorilla/context is a general purpose registry for global request variables.

License

See the LICENSE file for details.

Main metrics

Overview
Name With Ownergorilla/context
Primary LanguageGo
Program languageGo (Language Count: 2)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2012-10-02 21:41:50
Pushed At2023-11-05 22:04:09
Last Commit At
Release Count4
Last Release Namev2.0.0 (Posted on )
First Release Namev1.1 (Posted on 2016-04-22 06:14:22)
用户参与
Stargazers Count428
Watchers Count23
Fork Count138
Commits Count58
Has Issues Enabled
Issues Count16
Issue Open Count0
Pull Requests Count18
Pull Requests Open Count0
Pull Requests Close Count12
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private