High level client for golang http2 server push

元气小坏坏 提交于 2019-12-10 14:54:35

问题


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?


回答1:


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

https://godoc.org/golang.org/x/net/http2#Framer.WritePushPromise



来源:https://stackoverflow.com/questions/37872924/high-level-client-for-golang-http2-server-push

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!