Skip to content

Commit

Permalink
update queryParser config
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Feb 6, 2024
1 parent e524b73 commit 8325ed0
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docs/api/ctx.md
Original file line number Diff line number Diff line change
Expand Up @@ -1387,9 +1387,13 @@ app.Get("/", func(c *fiber.Ctx) error {
return err
}

log.Println(p.Name) // john
log.Println(p.Pass) // doe
log.Println(p.Products) // [shoe, hat]
log.Println(p.Name) // john
log.Println(p.Pass) // doe
// fiber.Config{EnableSplittingOnParsers: false} - default
log.Println(p.Products) // ["shoe,hat"]
// fiber.Config{EnableSplittingOnParsers: true}
// log.Println(p.Products) // ["shoe", "hat"]


// ...
})
Expand All @@ -1398,6 +1402,10 @@ app.Get("/", func(c *fiber.Ctx) error {
// curl "http://localhost:3000/?name=john&pass=doe&products=shoe,hat"
```
:::info
For more parser settings please look here [Config](fiber.md#Config)
:::
## Range
A struct containing the type and a slice of ranges will be returned.
Expand Down

0 comments on commit 8325ed0

Please sign in to comment.