// Context is the most important part of gin. It allows us to pass variables between middleware, // manage the flow, validate the JSON of a request and render a JSON response for example. type Context struct { writermem responseWriter Request *http.Request Writer ResponseWriter
Params Params handlers HandlersChain index int8 fullPath string
// Keys is a key/value pair exclusively for the context of each request. Keys map[string]interface{}
// Errors is a list of errors attached to all the handlers/middlewares who used this context. Errors errorMsgs
// Accepted defines a list of manually accepted formats for content negotiation. Accepted []string
// queryCache use url.ParseQuery cached the param query result from c.Request.URL.Query() queryCache url.Values
// formCache use url.ParseQuery cached PostForm contains the parsed form data from POST, PATCH, // or PUT body parameters. formCache url.Values
// SameSite allows a server to define a cookie attribute making it impossible for // the browser to send this cookie along with cross-site requests. sameSite http.SameSite }