MCPcopy Create free account
hub / github.com/kataras/iris / AcquireResponseRecorder

Function AcquireResponseRecorder

context/response_recorder.go:24–26  ·  view source on GitHub ↗

AcquireResponseRecorder returns a new *AcquireResponseRecorder from the pool. Releasing is done automatically when request and response is done.

()

Source from the content-addressed store, hash-verified

22// AcquireResponseRecorder returns a new *AcquireResponseRecorder from the pool.
23// Releasing is done automatically when request and response is done.
24func AcquireResponseRecorder() *ResponseRecorder {
25 return rrpool.Get().(*ResponseRecorder)
26}
27
28func releaseResponseRecorder(w *ResponseRecorder) {
29 rrpool.Put(w)

Callers 1

RecordMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…