mirror of https://github.com/gofiber/fiber.git
parent
5d04abf55e
commit
dfc141660d
|
@ -30,9 +30,9 @@ app.Use(requestid.New())
|
|||
// Or extend your config for customization
|
||||
app.Use(requestid.New(requestid.Config{
|
||||
Header: "X-Custom-Header",
|
||||
Generetor: func() string {
|
||||
Generator: func() string {
|
||||
return "static-id"
|
||||
}
|
||||
},
|
||||
}))
|
||||
```
|
||||
|
||||
|
@ -69,4 +69,4 @@ var ConfigDefault = Config{
|
|||
},
|
||||
}
|
||||
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue