hoax

Restful JSON client using pax for path currying and request for HTTP.

hoax

JSON HTTP client using pax for path currying and request for HTTP.

Used by coax

Install the module with: npm install hoax

var hoax = require('hoax');
 
hoax(["http://localhost:3001/","very","awesome"], function(errjson){
    console.log("fetched", json)
});
 
// currying 
var server = hoax("http://localhost:3001/"),
    path = server("very", {query : "params"});
 
// put JSON to "http://localhost:3001/very/awesome?query=params" 
path.put("awesome", {some:"data"}, function(errjson){
    console.log("put json", json);
});
 

Copyright (c) 2013 Chris Anderson Licensed under the Apache license.