Method
Contains a string corresponding to the HTTP method of the request: GET
, POST
, PUT
and so on.
Optionally, you could override the method by passing a string.
- c.Method(override ...string) string
- app.Post("/", func(c *fiber.Ctx) {
- c.Method() // "POST"
- })