Response

Request return the *fasthttp.Response pointer

Signature

  1. func (c *Ctx) Response() *fasthttp.Response

Example

  1. app.Get("/", func(c *fiber.Ctx) error {
  2. c.Response().Write([]byte("Hello, World!"))
  3. // => "Hello, World!"
  4. })