mozilla/gaia-contact-sync — pull request #3 by jedp (2014-04-14 17:12:27+00:00)
Title: Helper class for making xhr requests

@fmarier can you take a peek? This API ok with you?

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.