Middlewares

Functions designed to make changes to the request or response are called middlewares.

The Use() method registers a middleware route that will match requests with the prefix provided (which is optional and defaults to "/").


// Function signature
func (app *App) Use(args ...interface{}) Router
                        

For more information about Fiber Middleware, click here

In the next pages, we will list some ready-made middleware that Fiber provides. As there are many, click here to see a complete list.

middlewares.go