We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be810c4 commit 2dde96aCopy full SHA for 2dde96a
‎docs/validation/schema-type.md
@@ -80,11 +80,12 @@ Validate an incoming [HTTP Message](https://developer.mozilla.org/en-US/docs/Web
80
81
These messages are additional messages for the webserver to process.
82
83
-The body is provided as same as `body` in `fetch` API.
+The body is provided as same as `body` in `fetch` API. The content type should be set accordingly to the defined body.
84
85
```typescript
86
fetch('https://elysiajs.com', {
87
method: 'POST',
88
+ headers: { 'Content-Type': 'application/json' },
89
body: JSON.stringify({
90
name: 'Elysia'
91
})
0 commit comments