cockrel-ht-client

1.0.4 • Public • Published

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.

Package Sidebar

Install

npm i cockrel-ht-client

Weekly Downloads

6

Version

1.0.4

License

ISC

Last publish

Collaborators

  • g5095