strophe/strophejs-plugins — pull request #6 by alexhancock (2013-08-02 19:44:17+00:00)
Title: [plugins] Custom HTTP Headers Plugin

Adds a plugin for sending custom HTTP headers over a `Strophe.Connection`. The API for the feature looks like this...

```javascript
var conn = new Strophe.Connection(url);
conn.customHeaders = {
'X-Special-Header': 'Something'
};
```

All further XHR traffic on the `Connection` should include your custom headers.