mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
Fix httpcache sub-package.
Former-commit-id: d0bf86713bda90ade130c93dcf04d9b26f1e4f08
This commit is contained in:
committed by
Gerasimos (Makis) Maropoulos
parent
2d3bd55dd5
commit
3e5f61ff6b
10
context.go
10
context.go
@@ -199,11 +199,15 @@ func (c *contextPool) Run(w http.ResponseWriter, r *http.Request, runner func(*C
|
||||
type (
|
||||
|
||||
// Map is just a conversion for a map[string]interface{}
|
||||
// should not be used inside Render when PongoEngine is used.
|
||||
Map map[string]interface{}
|
||||
|
||||
// Context is resetting every time a request is coming to the server
|
||||
// it is not good practice to use this object in goroutines, for these cases use the .Clone()
|
||||
// Context is the "midle-man"" server's object for the clients.
|
||||
//
|
||||
// A New Context is being acquired from a sync.Pool on each connection.
|
||||
// The Context is the most important thing on the Iris' http flow.
|
||||
//
|
||||
// Developers send responses to the client's request through a Context.
|
||||
// Developers get request information from the client's request a Context.
|
||||
Context struct {
|
||||
ResponseWriter // *responseWriter by default, when record is on then *ResponseRecorder
|
||||
Request *http.Request
|
||||
|
||||
Reference in New Issue
Block a user