MCPcopy Create free account
hub / github.com/devfeel/dotweb / Handle

Method Handle

middleware.go:137–145  ·  view source on GitHub ↗
(ctx Context)

Source from the content-addressed store, hash-verified

135}
136
137func (x *xMiddleware) Handle(ctx Context) error {
138 if ctx.getMiddlewareStep() == "" {
139 ctx.setMiddlewareStep(middleware_App)
140 }
141 if x.IsEnd {
142 return ctx.Handler()(ctx)
143 }
144 return x.Next(ctx)
145}
146
147type RequestLogMiddleware struct {
148 BaseMiddleware

Callers

nothing calls this directly

Calls 4

getMiddlewareStepMethod · 0.65
setMiddlewareStepMethod · 0.65
HandlerMethod · 0.65
NextMethod · 0.65

Tested by

no test coverage detected