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

Method SetResponse

context.go:183–185  ·  view source on GitHub ↗

SetResponse sets `*http.ResponseWriter`. Some context methods and/or middleware require that given ResponseWriter implements following method `Unwrap() http.ResponseWriter` which eventually should return *echo.Response instance.

(r http.ResponseWriter)

Source from the content-addressed store, hash-verified

181// SetResponse sets `*http.ResponseWriter`. Some context methods and/or middleware require that given ResponseWriter implements following
182// method `Unwrap() http.ResponseWriter` which eventually should return *echo.Response instance.
183func (c *Context) SetResponse(r http.ResponseWriter) {
184 c.response = r
185}
186
187// IsTLS returns true if HTTP connection is TLS otherwise false.
188func (c *Context) IsTLS() bool {

Callers 5

jsonMethod · 0.95
WrapMiddlewareFunction · 0.80
ToMiddlewareMethod · 0.80
ToMiddlewareMethod · 0.80

Calls

no outgoing calls

Tested by 1