Alex
Alex

Reputation: 247

High level client for golang http2 server push

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?

Upvotes: 5

Views: 2647

Answers (1)

OneOfOne
OneOfOne

Reputation: 99215

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

Upvotes: 1

Related Questions