Logger Logger Logger middleware logs the information about each HTTP request. Installation go get - u github . com / gofiber / logger Signature logger . new ( confi...
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...
Accepts Accepts Checks, if the specified extensions or content types are acceptable. Based on the request’s Accept HTTP header. func ( c * Ctx ) Accepts ( offers ....
Accepts Accepts Checks, if the specified extensions or content types are acceptable. Based on the request’s Accept HTTP header. func ( c * Ctx ) Accepts ( offers ...
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 ( "...
Accepts Accepts Checks, if the specified extensions or content types are acceptable. Based on the request’s Accept HTTP header. func ( c * Ctx ) Accepts ( offers ....
Params Params Method can be used to get the route parameters, you could pass an optional default value that will be returned if the param key does not exist. Defaults to empt...