OriginalURL

Returns the original request URL.

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

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