Set
Sets the response’s HTTP header field to the specified key
, value
.
func (c *Ctx) Set(key string, val string)
app.Get("/", func(c *fiber.Ctx) error {
c.Set("Content-Type", "text/plain")
// => "Content-type: text/plain"
// ...
})
本文档使用 BookStack 构建