Protocol

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

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