Append

Appends the specified value to the HTTP response header field.

If the header is not already set, it creates the header with the specified value.
  1. func (c *Ctx) Append(field string, values ...string)
  1. app.Get("/", func(c *fiber.Ctx) error {
  2. c.Append("Link", "http://google.com", "http://localhost")
  3. // => Link: http://localhost, http://google.com
  4. c.Append("Link", "Test")
  5. // => Link: http://localhost, http://google.com, Test
  6. // ...
  7. })