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

Method Before

response.go:36–38  ·  view source on GitHub ↗

Before registers a function which is called just before the response (status) is written.

(fn func())

Source from the content-addressed store, hash-verified

34
35// Before registers a function which is called just before the response (status) is written.
36func (r *Response) Before(fn func()) {
37 r.beforeFuncs = append(r.beforeFuncs, fn)
38}
39
40// After registers a function which is called just after the response is written.
41func (r *Response) After(fn func()) {

Callers 2

TestResponseFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestResponseFunction · 0.76