【问题标题】:X-ray default user agentX 射线默认用户代理
【发布时间】:2018-01-24 14:40:27
【问题描述】:

我正在开发 Node-Js 应用程序,我正在使用 X-Ray 库和 Request-X-Ray 作为驱动程序,我只想知道默认情况下 X-Ray 使用的是哪个用户代理?

【问题讨论】:

    标签: javascript node.js x-ray


    【解决方案1】:

    X-Ray 内部使用 superagent,如果未明确设置,则默认为 node-superagent/{superagent-version}

    你可以看到这个here directly in the source

    【讨论】:

    • 但是我使用的是request-x-ray库作为驱动所以它引用了我认为的request库,和node-superagent不一样?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-12-18
    • 1970-01-01
    • 2017-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-09
    相关资源
    最近更新 更多