Skip to content

Commit 18d994e

Browse files
authored
📒docs: Fix RequestID docs (#3648)
1 parent 3294d96 commit 18d994e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/middleware/requestid.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ id: requestid
44

55
# RequestID
66

7-
RequestID middleware for [Fiber](https://github.com/gofiber/fiber) that adds an identifier to the response.
7+
RequestID middleware for [Fiber](https://github.com/gofiber/fiber) that generates or propagates a request identifier. The ID is added to the response headers and stored in the request context.
88

99
## Signatures
1010

@@ -24,7 +24,7 @@ import (
2424
)
2525
```
2626

27-
After you initiate your Fiber app, you can use the following possibilities:
27+
After initializing your Fiber app, you can use the middleware in the following ways:
2828

2929
```go
3030
// Initialize default config
@@ -39,6 +39,8 @@ app.Use(requestid.New(requestid.Config{
3939
}))
4040
```
4141

42+
If the incoming request already contains the configured header, its value is reused instead of generating a new one.
43+
4244
Getting the request ID
4345

4446
```go

0 commit comments

Comments
 (0)