Links
Joins the links followed by the property to populate the response’s Link HTTP header field.
- c.Links(link ...string)
- app.Get("/", func(c *fiber.Ctx) {
- c.Link(
- "http://api.example.com/users?page=2", "next",
- "http://api.example.com/users?page=5", "last",
- )
- // Link: <http://api.example.com/users?page=2>; rel="next",
- // <http://api.example.com/users?page=5>; rel="last"
- })