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. c.Append(field, values ...string)
  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.Append("Link", "http://google.com", "http://localhost")
  3. // => Link: http://localhost, http://google.com
  4.  
  5. c.Append("Link", "Test")
  6. // => Link: http://localhost, http://google.com, Test
  7. })