oro-xhr

3.0.1 • Public • Published

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)
})

Readme

Keywords

Package Sidebar

Install

npm i oro-xhr

Weekly Downloads

14

Version

3.0.1

License

ISC

Last publish

Collaborators

  • orodio