Path

Contains the path part of the request URL. Optionally, you could override the path by passing a string.

  1. c.Path(override ...string) string
  1. // GET http://example.com/users?sort=desc
  2.  
  3. app.Get("/users", func(c *fiber.Ctx) {
  4. c.Path() // "/users"
  5. })