1.0.4 • Published 10 years ago

cockrel-ht-client v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
10 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

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago