INNER CODE UNIT · Go
NewContext
GoAdminGroup/go-admin · context/context.go:122
func NewContext(req *http.Request) *Context {
return &Context{
Request: req,
UserValue: make(map[string]interface{}),
Response: &http.Response{
StatusCode: http.StatusOK,
Header: make(http.Header),
},
index: -1,
}
}
const (
HeaderContentType = "Content-Type"
HeaderLastModified = "Last-Modified"
HeaderIfModifiedSince = "If-Modified-Since"