Location

Sets the response Location HTTP header to the specified path parameter.

  1. c.Location(path string)
  1. app.Post("/", func(c *fiber.Ctx) {
  2. c.Location("http://example.com")
  3. c.Location("/foo/bar")
  4. })