Acquire returns a Context from pool. See Release.
(w http.ResponseWriter, r *http.Request)
| 18 | // Acquire returns a Context from pool. |
| 19 | // See Release. |
| 20 | func (c *Pool) Acquire(w http.ResponseWriter, r *http.Request) *Context { |
| 21 | ctx := c.pool.Get().(*Context) |
| 22 | ctx.BeginRequest(w, r) |
| 23 | return ctx |
| 24 | } |
| 25 | |
| 26 | // Release puts a Context back to its pull, this function releases its resources. |
| 27 | // See Acquire. |
nothing calls this directly
no test coverage detected