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.  
  5. c.Fasthttp.Response.Write([]byte("Hello, World!"))
  6. // => "Hello, World!"
  7. })