MCPcopy
hub / github.com/gofiber/fiber / setHandlerCtxIfNeeded

Method setHandlerCtxIfNeeded

ctx_interface.go:80–84  ·  ctx_interface.go::App.setHandlerCtxIfNeeded
(ctx CustomCtx)

Source from the content-addressed store, hash-verified

78}
79
80func (app *App) setHandlerCtxIfNeeded(ctx CustomCtx) {
81 if app.hasCustomCtx || isCustomCtx(ctx) {
82 ctx.setHandlerCtx(ctx)
83 }
84}
85
86func isCustomCtx(ctx CustomCtx) bool {
87 if ctx == nil {

Callers 2

AcquireCtxMethod · 0.95

Calls 2

isCustomCtxFunction · 0.85
setHandlerCtxMethod · 0.65