MCPcopy
hub / github.com/gofiber/fiber / ReleaseResponse

Function ReleaseResponse

client/response.go:238–241  ·  view source on GitHub ↗

ReleaseResponse returns the Response object to the pool. Do not use the released Response afterward to avoid data races.

(resp *Response)

Source from the content-addressed store, hash-verified

236// ReleaseResponse returns the Response object to the pool.
237// Do not use the released Response afterward to avoid data races.
238func ReleaseResponse(resp *Response) {
239 resp.Reset()
240 responsePool.Put(resp)
241}

Calls 2

ResetMethod · 0.65
PutMethod · 0.65