> For the complete documentation index, see [llms.txt](https://docs.yemreak.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yemreak.com/arsiv/yazilarim/aiohttp.clientsession-icerisideki-params-data-ve-json-ne-ise-yarar.md).

# aiohttp.ClientSession() içerisideki params, data ve json ne işe yarar

1. 📋 `params`: URL'nin sonunda bir soru işaretiyle başlayan ve genellikle anahtar-değer çiftlerinden oluşan sorgu dizelerini oluşturmak için kullanılır.

   ```python
   params = {'tür': 'komedi'}
   async with session.get('<http://filmtadında.com/>', params=params) as resp:
       data = await resp.text()

   ```
2. 📦 `data`: HTTP isteğinin gövdesinde göndermek istediğiniz veriyi belirtir. POST isteklerinde sıklıkla kullanılır.

   ```python
   data = {'name': 'John', 'email': 'john@example.com', 'password': 'secret'}
   async with session.post('<http://website.com/api/users>', data=data) as resp:
       data = await resp.text()

   ```
3. 📄 `json`: HTTP isteğinin gövdesinde göndermek istediğiniz JSON verisini belirtir. JSON formatındaki veriyi otomatik olarak ayarlar ve sunucuya iletir.

   ```python
   json_data = {'name': 'John', 'email': 'john@example.com', 'password': 'secret'}
   async with session.post('<http://website.com/api/users>', json=json_data) as resp:
       data = await resp.text()

   ```

> Yukarıdaki kod parçaları, `aiohttp` kütüphanesi kullanılarak bir aiohttp.ClientSession nesnesi (`session`) içinde çalışacak şekilde tasarlanmıştır. Asenkron I/O, özellikle ağ isteklerinde yüksek performans sağlar. Bu kod parçalarını çalıştırmadan önce, `aiohttp` kütüphanesini kurmanız ve bir `aiohttp.ClientSession`oluşturmanız gerekmektedir.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yemreak.com/arsiv/yazilarim/aiohttp.clientsession-icerisideki-params-data-ve-json-ne-ise-yarar.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
