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

Method Handler

app.go:1238–1242  ·  view source on GitHub ↗

Handler returns the server handler.

()

Source from the content-addressed store, hash-verified

1236
1237// Handler returns the server handler.
1238func (app *App) Handler() fasthttp.RequestHandler { //revive:disable-line:confusing-naming // Having both a Handler() (uppercase) and a handler() (lowercase) is fine. TODO: Use nolint:revive directive instead. See https://github.com/golangci/golangci-lint/issues/3476
1239 // prepare the server for the start
1240 app.startupProcess()
1241 return app.selectRequestHandler()
1242}
1243
1244func (app *App) selectRequestHandler() fasthttp.RequestHandler {
1245 if app.hasCustomCtx {

Calls 2

startupProcessMethod · 0.95
selectRequestHandlerMethod · 0.95