Skip to content

mmalecki/jsonquest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonquest Build Status

A simple HTTP(S) client for JSON APIs.

Installation

npm install jsonquest

Usage

var jsonquest = require('jsonquest');

jsonquest({
  host: 'localhost',
  port: 9999,
  path: '/hello',
  body: { hello: 'world' },
  method: 'PUT',
  protocol: 'http'
}, function (err, res, body) {
  console.log('/hello responded with ' + res.statusCode);
  console.dir(body);
});

About

A simple HTTP(S) client for JSON APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published