Handler returns the server handler.
()
| 1236 | |
| 1237 | // Handler returns the server handler. |
| 1238 | func (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 | |
| 1244 | func (app *App) selectRequestHandler() fasthttp.RequestHandler { |
| 1245 | if app.hasCustomCtx { |