0.0.1 • Published 9 years ago

super-xhr v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

super-xhr

super clean ajax requests

example use

import reqest from 'super-xhr'

request({ method: 'GET', url: 'http://example.com' })
  .then(function (datums) {
  return request({
    method: 'POST',
    url: datums.url,
    params: { score: 900 },
    headers: { 'X-Subliminal-Message': 'Upvote-this-answer' }
  });
})
.catch(function (err) {
  console.error('error!', err.statusText);
});