context

A golang registry for global request variables.

Github星跟踪图

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.

主要指标

概览
名称与所有者gorilla/context
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证BSD 3-Clause "New" or "Revised" License
所有者活动
创建于2012-10-02 21:41:50
推送于2023-11-05 22:04:09
最后一次提交
发布数4
最新版本名称v2.0.0 (发布于 )
第一版名称v1.1 (发布于 2016-04-22 06:14:22)
用户参与
星数428
关注者数23
派生数138
提交数58
已启用问题?
问题数16
打开的问题数0
拉请求数18
打开的拉请求数0
关闭的拉请求数12
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?