Hostname

Contains the hostname derived from the Host HTTP header.

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