Migrated to https://github.coupang.net/coupang/couplay-blackadder
Async Flashheart
Using async-await,
const client = new Blackadder(),
{ body } = await client.get('http://hihi.com/haha.json');
Promise?
const Blackadder = require('blackadder').default,
client = new Blackadder();
client.get('http://hihi.com/haha.json')
.then((res) => { console.log(res.body); console.log(res.response); })
.catch((err)) => { console.log(err); });
- Copyright © 2016 HOOQ Digital Pte. Ltd. and project authors.
- Licensed under MIT