oro-xhr
v3.0.1
Published
xhr stuff
Downloads
6
Readme
oro-xhr
import { post } from 'oro-xhr'
let options = { headers: { 'X-Foo': 'bar' } }
post('http://foobar.com', { foo: 'bar' }, opts).then(function(resp) {
console.log(resp.body)
})
import get from 'oro-xhr/get'
get('http://google.com').then(function(resp) {
console.log(resp.text)
})