【问题标题】:How to curl a protobuf type_url?如何卷曲 protobuf type_url?
【发布时间】:2021-04-09 14:39:20
【问题描述】:

Envoy 文档提供了一个 configuration example,它为特定的配置节指定了 type_urltype.googleapis.com/envoy.extensions.listeners.tls_inspector.v3.TlsInspector

根据protobuf documentation,针对此 URL 的 HTTP GET 应返回协议消息类型或错误。

运行curl https://type.googleapis.com/envoy.extensions.listeners.tls_inspector.v3.TlsInspector 返回 404。有没有办法卷曲这个 URL 以查看类型?还是 404 是文档所指的错误?

【问题讨论】:

    标签: protocol-buffers envoyproxy


    【解决方案1】:

    这个功能会很有趣,但它似乎是一个遗物,至少对于 protobuf 的公共版本来说是这样。

    src/google/protobuf/any.proto:

      // Note: this functionality is not currently available in the official
      // protobuf release, and it is not used for type URLs beginning with
      // type.googleapis.com.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-10-12
      • 1970-01-01
      • 1970-01-01
      • 2010-12-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多