eBay jsonpipe轻量级的 AJAX 客户端
jsonpipe 是一个轻量级的 AJAX 客户端,用于处理压缩(chunked)的 JSON 响应信息。
示例代码:
var jsonpipe = require('jsonpipe'); /** * @param {String} url A string containing the URL to which the request is sent. * @param {Object} url A set of key/value pairs that configure the Ajax request. * @return {XMLHttpRequest} The XMLHttpRequest object for this request. * @method flow */ jsonpipe.flow('http://api.com/items?q=batman', { "delimiter": "", // String. The delimiter separating valid JSON objects; default is "\n\n" "success": function(data) { // Do something with this JSON chunk }, "error": function(errorMsg) { // Something wrong happened, check the error message }, "complete": function(statusText) { // Called after success/error, with the XHR status text }, "timeout": 3000, // Number. Set a timeout (in milliseconds) for the request "method": "GET", // String. The type of request to make (e.g. "POST", "GET", "PUT"); default is "GET" "headers": { // Object. An object of additional header key/value pairs to send along with request "X-Requested-With": "XMLHttpRequest" }, "data": "" // String. A serialized string to be sent in a POST/PUT request });
评论
Forest轻量级 HTTP 客户端
Forest是一个高层的、极简的轻量级HTTP调用API框架。相比于直接使用Httpclient您不再用写一大堆重复的代码了,而是像调用本地方法一样去发送HTTP请求。文档和示例:项目主页中文文档Ja
Forest轻量级 HTTP 客户端
0
WeeChat轻量级 IRC 客户端
WeeChat(WeeEnhancedEnvironmentforChat)是个快速的轻量级IRC客户端,可以在多种操作系统中运行。所有的东西都能用键盘完成,而且可以自定义,扩展C插件和脚本,兼容RF
WeeChat轻量级 IRC 客户端
0
Sylpheed轻量级邮件客户端
Sylpheed是一款简洁的,易操作的,启动快速的,高定制性的轻量级邮件客户端。Sylpheed支持多个平台Linux,BSD,andMacOSX,Windows。Sylpheed是一款自由软件,遵守
Sylpheed轻量级邮件客户端
0