RESTful 的 JavaScript 开发包:Rest.js

jopen 12年前

rest.js 是一个 RESTful HTTP 客户端的 JavaScript 包。

示例代码:

var rest, mime, client;    rest = require('rest'),  mime = require('rest/interceptor/mime');    client = rest.chain(mime);  client({ path: '/data.json' }).then(function(response) {      console.log('response: ', response);  });

项目主页:http://www.open-open.com/lib/view/home/1364524127843