MCPcopy
hub / github.com/labstack/echo / reset

Method reset

response.go:109–116  ·  view source on GitHub ↗
(w http.ResponseWriter)

Source from the content-addressed store, hash-verified

107}
108
109func (r *Response) reset(w http.ResponseWriter) {
110 r.beforeFuncs = nil
111 r.afterFuncs = nil
112 r.ResponseWriter = w
113 r.Size = 0
114 r.Status = http.StatusOK
115 r.Committed = false
116}
117
118// UnwrapResponse unwraps given ResponseWriter to return contexts original Echo Response. rw has to implement
119// following method `Unwrap() http.ResponseWriter`

Callers 1

ResetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected