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://www.codercto.com/soft/d/2540.html

领域驱动设计

领域驱动设计

埃文斯 / 赵俐、盛海艳、刘霞 / 人民邮电出版社 / 2010-11 / 69.00元

《领域驱动设计:软件核心复杂性应对之道》是领域驱动设计方面的经典之作。全书围绕着设计和开发实践,结合若干真实的项目案例,向读者阐述如何在真实的软件开发中应用领域驱动设计。书中给出了领域驱动设计的系统化方法,并将人们普遍接受的一些最佳实践综合到一起,融入了作者的见解和经验,展现了一些可扩展的设计最佳实践、已验证过的技术以及便于应对复杂领域的软件项目开发的基本原则。《领域驱动设计:软件核心复杂性应对之......一起来看看 《领域驱动设计》 这本书的介绍吧!

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

在线压缩/解压 HTML 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具