Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
JSON ReST client using pax for path currying and request for HTTP.
JavaScript
Branch: master
Failed to load latest commit information.
lib update package.json
test extensions
.gitignore gitignore node_modules
.npmignore initial checkin
.travis.yml add travis
LICENSE-Apache2 initial checkin
README.md add travis
grunt.js initial checkin
package.json update package.json

README.md

hoax

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

Used by coax

Build Status

Getting Started

Install the module with: npm install hoax

var hoax = require('hoax');

hoax(["http://localhost:3001/","very","awesome"], function(err, json){
    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(err, json){
    console.log("put json", json);
});

License

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

Something went wrong with that request. Please try again.