# Request Bodies को Parse करना — Fastify

Source: https://www.geekswithgeeks.com/hi/fastify/ff-body-parsing

> Built-in content-type handlers के साथ JSON, form data, और raw bodies को handle करें।

## Content-Type driven parsing

Fastify automatically `Content-Type` के आधार पर request bodies को parse करता है। JSON, URL-encoded forms, और multipart बॉक्स से समर्थित हैं।

## JSON request bodies

Fastify द्वारा JSON parse करने के बाद `request.body` को access करें।

```javascript
fastify.post('/users', async (req) => {
  // req.body is already parsed from Content-Type: application/json
  const { name, email } = req.body;
  return { id: 1, name, email };
});
```

## Multipart के साथ फ़ाइल uploads

फ़ाइल uploads के लिए, multipart/form-data को handle करने के लिए `@fastify/multipart` plugin उपयोग करें।
