You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, only `json` and `urlencoded` parsers are registered. If you want to register a different parser on the fly, you will need to do so explicitly.
41
+
42
+
For example, to register a `text` parser, you can use the following code:
43
+
44
+
```typescript
45
+
app.useBodyParser('text')
46
+
```
47
+
33
48
#### Use with Fastify
34
49
35
50
First enable the option when creating your Nest Fastify application:
By default, only `application/json` and `application/x-www-form-urlencoded` parsers are registered. If you want to register a different parser on the fly, you will need to do so explicitly.
86
+
87
+
For example, to register a `text/plain` parser, you can use the following code:
0 commit comments