Protocol

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

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