V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
guonaihong
V2EX  ›  程序员

golang: 流式 http client 新特性提前预览

  •  
  •   guonaihong ·
    guonaihong · 2019-11-12 09:25:17 +08:00 · 2371 次点击
    这是一个创建于 1621 天前的主题,其中的信息可能已经有所发展或是发生改变。

    这个版本除了带来新的 API,继续优化工程质量,还在优化 debug 模式,主要带来颜色高亮特性,让 debug 的数据更醒目(正式版本 18 号发布)。

    项目地址

    https://github.com/guonaihong/gout

    演示

    gout-example.gif

    10 条回复    2019-11-12 13:33:03 +08:00
    richzhu
        1
    richzhu  
       2019-11-12 10:26:54 +08:00   ❤️ 1
    不懂就问: 什么是流式 http ? 可以实现什么,适合用在什么地方?
    optional
        2
    optional  
       2019-11-12 10:45:36 +08:00   ❤️ 2
    为什么把链式(chaining)叫流式?
    guonaihong
        3
    guonaihong  
    OP
       2019-11-12 10:59:36 +08:00
    @optional 链式是实现方式,流式是设计理念。
    guonaihong
        4
    guonaihong  
    OP
       2019-11-12 11:05:29 +08:00
    @richzhu 流式 http client。就像使用 shell 一样,大水管接小水管,可以组合出强大的功能。RESTful 接口开发可以使用。 下个版本还会集成 benchmark 功能。未来主要用在 RESTful 接口开发,benchmark。和全链路压测平台的前端。
    jklopsdfw
        5
    jklopsdfw  
       2019-11-12 11:19:08 +08:00 via iPhone
    能两个流并一个流不,能一个流拆两个流不
    guonaihong
        6
    guonaihong  
    OP
       2019-11-12 11:22:08 +08:00
    @jklopsdfw 现在还不行。不过在 Roadmap,会实现的。
    guonaihong
        7
    guonaihong  
    OP
       2019-11-12 11:22:29 +08:00
    @jklopsdfw 感兴趣可以关注下。
    wysnylc
        8
    wysnylc  
       2019-11-12 12:16:35 +08:00
    Apache HttpClient Fluent ?
    lidfather
        9
    lidfather  
       2019-11-12 12:16:58 +08:00 via Android
    把心思放在稳定性上面,谁要一个库 json 高亮啊
    guonaihong
        10
    guonaihong  
    OP
       2019-11-12 13:33:03 +08:00
    @lidfather 有心了。稳定性是一直在做的,不妨碍优化功能。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2656 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:33 · PVG 19:33 · LAX 04:33 · JFK 07:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.