@ampatspell/sofa-request
Sofa http request
Last updated 5 years ago by ampatspell .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @ampatspell/sofa-request 
SYNC missed versions from official npm registry.

sofa-request

Request class. Simple promise-based wrapper around request module.

Defaults to { json: true }

import { Development } from '@ampatspell/sofa-logger';
import Request from '@ampatspell/sofa-request';

let logger = new Development({ identifier: 'demo' });
let request = new Request({ logger: logger });

request.send({
  method: 'get',
  uri: 'http://127.0.0.1:5984'
}).then(json => {
  // { couchdb: 'Welcome', ... }
});

Current Tags

  • 0.0.3                                ...           latest (5 years ago)

3 Versions

  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 2
Dependencies (5)
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |