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

Method Unwrap

response.go:105–107  ·  view source on GitHub ↗

Unwrap returns the original http.ResponseWriter. ResponseController can be used to access the original http.ResponseWriter. See [https://go.dev/blog/go1.20]

()

Source from the content-addressed store, hash-verified

103// ResponseController can be used to access the original http.ResponseWriter.
104// See [https://go.dev/blog/go1.20]
105func (r *Response) Unwrap() http.ResponseWriter {
106 return r.ResponseWriter
107}
108
109func (r *Response) reset(w http.ResponseWriter) {
110 r.beforeFuncs = nil

Callers 5

TestResponse_UnwrapFunction · 0.95
TestHTTPError_WrapUnwrapFunction · 0.45
testBindErrorFunction · 0.45
DefaultHTTPErrorHandlerFunction · 0.45
UnwrapResponseFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestResponse_UnwrapFunction · 0.76
TestHTTPError_WrapUnwrapFunction · 0.36
testBindErrorFunction · 0.36