MCPcopy Index your code
hub / github.com/labstack/echo / ReleaseContext

Method ReleaseContext

echo.go:761–763  ·  view source on GitHub ↗

ReleaseContext returns the `Context` instance back to the pool. You must call it after `AcquireContext()`.

(c *Context)

Source from the content-addressed store, hash-verified

759// ReleaseContext returns the `Context` instance back to the pool.
760// You must call it after `AcquireContext()`.
761func (e *Echo) ReleaseContext(c *Context) {
762 e.contextPool.Put(c)
763}
764
765// ServeHTTP implements `http.Handler` interface, which serves HTTP requests.
766func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) {

Callers 2

TestEchoContextFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestEchoContextFunction · 0.64