在Golang发送HTTP2请求时,如何指定流优先级?
对于下面的客户端示例,在调用“ client.get()”之前,没有选项可以提供流优先级?
我们有任何指定流优先级的选择吗?
client := http.Client{
Transport: &http2.Transport{
DialTLS: func(network, addr string, cfg *tls.Config) (net.Conn, error) {
return net.DialTimeout(network, addr, time.Second)
},
AllowHTTP: true,
},
}
// can I specify http2 stream priority before calling Get() below ??
resp, err := client.Get(path)
For the client example below, before calling "client.Get()", there is no option to provide the stream priority ?
Do we have any option to specify stream priority ?
client := http.Client{
Transport: &http2.Transport{
DialTLS: func(network, addr string, cfg *tls.Config) (net.Conn, error) {
return net.DialTimeout(network, addr, time.Second)
},
AllowHTTP: true,
},
}
// can I specify http2 stream priority before calling Get() below ??
resp, err := client.Get(path)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论