Raynos/xhr — pull request #55 by reqshark (2014-12-11 07:53:14+00:00)
Title: optional callback

there are occasions when i dont care about server responses to `xhr()`

when the server response doesn't matter but you still want to fire-and-forget some type of request, then the callback ought to be optional:

```js
xhr({
body:JSON.stringify(whatever),
uri:'/foo',
headers:{'content-type':'application/json'}
})
```

this makes the callback more optional by preventing an error when
`once()` calls `apply()` on the unregistered (meaning non-existent)
callback, i.e. not passed to the exported xhr() constructor.