Fasthttp

You can still access and use all Fasthttp methods and properties.

Signature

Please read the Fasthttp Documentation for more information.

Example

  1. app.Get("/", func(c *fiber.Ctx) {
  2. c.Fasthttp.Request.Header.Method()
  3. // => []byte("GET")
  4. c.Fasthttp.Response.Write([]byte("Hello, World!"))
  5. // => "Hello, World!"
  6. })