Skip to content

Commit a20d251

Browse files
Fennygitbook-bot
authored andcommitted
GitBook: [master] 6 pages modified
1 parent ec63932 commit a20d251

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

context.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Contains the **raw body** submitted in a **POST** request.
133133

134134
{% code title="Signature" %}
135135
```go
136-
c.Body(key ...string) string
136+
c.Body() string
137137
```
138138
{% endcode %}
139139

@@ -144,9 +144,6 @@ c.Body(key ...string) string
144144
app.Post("/", func(c *fiber.Ctx) {
145145
// Get raw body from POST request:
146146
c.Body() // user=john
147-
148-
// Get body value by specific key:
149-
c.Body("user") // "john"
150147
})
151148
```
152149
{% endcode %}
@@ -268,15 +265,12 @@ Get cookies.
268265
**Signature**s
269266

270267
```go
271-
c.Cookies(key ...string) string
268+
c.Cookies(key string) string
272269
```
273270

274271
{% code title="Example" %}
275272
```go
276273
app.Get("/", func(c *fiber.Ctx) {
277-
// Get raw cookie header:
278-
c.Cookies() // name=john;
279-
280274
// Get cookie by key:
281275
c.Cookies("name") // "john"
282276
})

0 commit comments

Comments
 (0)