1.0.4 • Published 8 years ago

cockrel-ht-client v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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.

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago