File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ Contains the **raw body** submitted in a **POST** request.
133
133
134
134
{% code title="Signature" %}
135
135
``` go
136
- c.Body (key ... string ) string
136
+ c.Body () string
137
137
```
138
138
{% endcode %}
139
139
@@ -144,9 +144,6 @@ c.Body(key ...string) string
144
144
app.Post (" /" , func (c *fiber.Ctx ) {
145
145
// Get raw body from POST request:
146
146
c.Body () // user=john
147
-
148
- // Get body value by specific key:
149
- c.Body (" user" ) // "john"
150
147
})
151
148
```
152
149
{% endcode %}
@@ -268,15 +265,12 @@ Get cookies.
268
265
** Signature** s
269
266
270
267
``` go
271
- c.Cookies (key ... string ) string
268
+ c.Cookies (key string ) string
272
269
```
273
270
274
271
{% code title="Example" %}
275
272
``` go
276
273
app.Get (" /" , func (c *fiber.Ctx ) {
277
- // Get raw cookie header:
278
- c.Cookies () // name=john;
279
-
280
274
// Get cookie by key:
281
275
c.Cookies (" name" ) // "john"
282
276
})
You can’t perform that action at this time.
0 commit comments