Skip to content

Commit f63c843

Browse files
Add docs from gofiber/fiber@fe395b9
1 parent 4479ab4 commit f63c843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/core/api/ctx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ app.Get("/", func(c *fiber.Ctx) error {
583583
584584
## GetReqHeaders
585585

586-
Returns the HTTP request headers.
586+
Returns the HTTP request headers as a map. Since a header can be set multiple times in a single request, the values of the map are slices of strings containing all the different values of the header.
587587

588588
```go title="Signature"
589589
func (c *Ctx) GetReqHeaders() map[string][]string
@@ -618,7 +618,7 @@ app.Get("/", func(c *fiber.Ctx) error {
618618
619619
## GetRespHeaders
620620

621-
Returns the HTTP response headers.
621+
Returns the HTTP response headers as a map. Since a header can be set multiple times in a single request, the values of the map are slices of strings containing all the different values of the header.
622622

623623
```go title="Signature"
624624
func (c *Ctx) GetRespHeaders() map[string][]string

0 commit comments

Comments
 (0)