# Leggere la query string e il body della richiesta

> Usa $.query per i parametri dell'URL e $.body per i dati JSON o di modulo in un handler di route.

Framework: total5
Product: Total.js 5 (total5@0.0.19)
Language: it
Content-SHA256: 004f763e04745a7c18e7d4a822cd03d295887157e214a9fb5cf69f8cdb64141b
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: total5-installed@total5@0.0.19
Review: not-recorded

In un handler di route, `$.query` è la query string già interpretata e `$.body` è il body interpretato. Total.js interpreta per te JSON, moduli URL-encoded e moduli multipart, in base al `content-type` della richiesta.

```js controllers/echo.js
exports.install = function() {
	ROUTE('POST /echo/', echo);
};

function echo($) {
	$.json({ query: $.query, body: $.body });
}
```
