1.0.5 • Published 9 years ago

very-tiny-http-client v1.0.5

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

very-tiny-http-client

Merely a wrapper around NodeJS's native http and https packages.

npm install --save very-tiny-http-client

Examples

var httpclient = require('very-tiny-http-client');

httpclient.post({
        url: 'http://example.server:3000/resources',
        data: {
            arbirtrary: "JSON Payload"
        }
    }, function (err, res) {
        if (err) {
            throw err;
        }
        console.log(res);
    });

will result in something like:

{ headers: 
   { 'x-powered-by': 'Express',
     etag: 'W/"a-b541a50d"',
     date: 'Sun, 29 Mar 2015 18:41:49 GMT',
     connection: 'close' },
  statusCode: 204,
  statusMessage: undefined,
  body: '' }
1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago