Protocol

Contains the request protocol string: http or https for TLS requests.

  1. c.Protocol() string
  1. // GET http://example.com
  2.  
  3. app.Get("/", func(c *fiber.Ctx) {
  4. c.Protocol() // "http"
  5. })