eBay jsonpipe

码农软件 · 软件分类 · JSON/BSON开发包 · 2019-03-31 10:12:05

软件介绍

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
});

本文地址:https://codercto.com/soft/d/2540.html

图解服务器端网络架构

图解服务器端网络架构

[日] 宫田宽士 / 曾薇薇 / 人民邮电出版社 / 2015-4 / 79.00元

本书以图配文,详细说明了服务器端网络架构的基础技术和设计要点。基础设计是服务器端网络架构最重要的一个阶段。本书就立足于基础设计的设计细分项目,详细介绍各细分项目的相关技术和设计要点。全书共分为5章,分别讲述进行物理设计、逻辑设计、安全设计和负载均衡设计、高可用性设计以及管理设计时所必需的技术和设计要点。一起来看看 《图解服务器端网络架构》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

随机密码生成器
随机密码生成器

多种字符组合密码

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具