Location

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

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