mozilla/gaia-contact-sync — pull request #2 by jedp (2014-04-11 20:57:54+00:00)
Title: Helper class for making xhr requests

Adds a wrapper class to make xhr requests easier.

Example:

var request = new Request(url, creds);
url.put(data).then( ... );

Supports `put`, `get`, `post`, and `delete`.

I've included a test suite for it, along with fixes to other test suites to make mocha happy.