cockrel-ht-client
v1.0.4
Published
Cockrel plugin for making hudson-taylor requests
Downloads
7
Readme
cockrel-request
Cockrel plugin for making hudson-taylor requests.
Install
const co = require('cockrel');
const htClient = ht.Client(...);
require('cockrel-ht-client')(co, htClient); // Good to go!
Usage
cockrel-request is a wrapper around ht.Client.call and follows the same basic conventions.
co.ht('service', 'function').begin(data);
// or
co.ht('service', 'function', {someData : '@someField', ...}).begin(data);
If no 3rd param is passed, the value of the previous step will be used.