Golang http2服务器推送的高级客户端

编程入门 行业动态 更新时间:2024-10-13 08:26:02
本文介绍了Golang http2服务器推送的高级客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

golang 1.6是在Http2支持下发布的.我在线搜索了谷歌,但找不到如何使用Go进行Http2服务器推送的任何示例.是否为此实现了任何高级客户端?人们有没有做过的例子?

golang 1.6 was released with Http2 support. I googled online but couldn't find any examples of how to do Http2 server push using Go. Is there any high level client implemented for that? Is there any examples that people have already done?

推荐答案

std库中的http2实现未公开特定于http2的接口,但是您可以使用 golang/x/net/http2 .

The http2 implementation in the std library doesn't expose http2-specific interfaces, however you can use golang/x/net/http2 directly.

godoc/golang/x/net/http2#Framer.WritePushPromise

更多推荐

Golang http2服务器推送的高级客户端

本文发布于:2023-07-14 10:19:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1104088.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:客户端   高级   服务器   Golang

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!