[英]How to read http2 pseudofields
I have an http2 handler and it received http2 requests.我有一个 http2 处理程序,它收到了 http2 请求。 Now I need to access:authority pseudoheader field in the request.
现在我需要访问:请求中的权限伪标题字段。 How to go about it?
怎么go一下呢? I am aware of few options as below:
我知道以下几个选项:
Is there a way, to just extract the pseudofield alone?有没有办法单独提取伪场?
the Host in http.Request does it in the sense that, it reads the:authority into r.Host field. http.Request 中的主机从某种意义上说,它将:权限读入 r.Host 字段。 But other fields are difficult to get a hold of.
但其他领域很难掌握。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.