BaseURL

Returns base URL (protocol + host) as a string.

  1. c.BaseURL() string
  1. // GET https://example.com/page#chapter-1
  2.  
  3. app.Get("/", func(c *fiber.Ctx) {
  4. c.BaseURL() // https://example.com
  5. })