Middleware Middleware Functions, that are designed to make changes to the request or response, are called middleware functions . The Next is a Fiber router function, when cal...
Next Next When Next is called, it executes the next method in the stack that matches the current route. You can pass an error struct within the method that will end the chaini...
🔎 Validation Validator package 🔎 Validation Validator package Fiber can make great use of the validator package to ensure correct validation of data to store. Official val...
Accepts Accepts Checks, if the specified extensions or content types are acceptable. Based on the request’s Accept HTTP header. c . Accepts ( types ... string ) ...
Request ID Request ID Request ID adds an identifier to the request using the X-Request-ID header Installation go get - u github . com / gofiber / requestid Signature...
Send Send Sets the HTTP response body. The Send body can be of any type. Send doesn’t append like the Write method. c . Send ( body ... interface {}) app . Get ( ...
WebSocket WebSocket Fiber supports a websocket upgrade middleware. The *Conn struct has all the functionality from the gorilla/websocket library. Installation go get -...