OriginalURL

Returns the original request URL.

  1. c.OriginalURL() string
  1. // GET http://example.com/search?q=something
  2. app.Get("/", func(c *fiber.Ctx) {
  3. c.OriginalURL() // "/search?q=something"
  4. })

Returned value is only valid within the handler. Do not store any references.
Make copies or use the
Immutable setting instead. Read more…