Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
80
func
(app *App) setHandlerCtxIfNeeded(ctx CustomCtx) {
81
if
app.hasCustomCtx || isCustomCtx(ctx) {
82
ctx.setHandlerCtx(ctx)
83
}
84
}
85
86
func
isCustomCtx(ctx CustomCtx) bool {
87
if
ctx == nil {
Callers
2
AcquireCtx
Method · 0.95
Test_App_SetHandlerCtxIfNeeded_CustomCtxFallback
Function · 0.80
Calls
2
isCustomCtx
Function · 0.85
setHandlerCtx
Method · 0.65
Tested by
1
Test_App_SetHandlerCtxIfNeeded_CustomCtxFallback
Function · 0.64