3 Star 3 Fork 2

Gitee 极速下载 / mux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/gorilla/mux
克隆/下载
context_native.go 380 Bytes
一键复制 编辑 原始数据 按行查看 历史
// +build go1.7
package mux
import (
"context"
"net/http"
)
func contextGet(r *http.Request, key interface{}) interface{} {
return r.Context().Value(key)
}
func contextSet(r *http.Request, key, val interface{}) *http.Request {
if val == nil {
return r
}
return r.WithContext(context.WithValue(r.Context(), key, val))
}
func contextClear(r *http.Request) {
return
}
1
https://gitee.com/mirrors/mux.git
git@gitee.com:mirrors/mux.git
mirrors
mux
mux
v1.6.2

搜索帮助