ariatemplates/ariatemplates — pull request #216 by piuccio (2012-11-06 16:58:39+00:00)
Title: Request headers

Till now it's only possible to specify the Content-Type header, that however is only used in XHR requests.
This commit gives the possibility to set any header and does some cleaning of IO and transports.

Inside `aria.core.IO`, `useXHRHeader`, `defaultXHRHeader`, `useDefaultPostHeader`, `defaultPostHeader`, `useDefaultContentTypeHeader`, `defaultContentTypeHeader` are now deprecated in favor of a simpler JSON object `headers`.

Use
````JS
aria.core.IO.headers = {
"Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8",
"X-Requested-With" : "XMLHttpRequest"
};
````
to set default headers for every IO request