【发布时间】:2016-03-31 19:26:26
【问题描述】:
我正在使用 Go 1.6,并希望通过 http:// 发出仅 HTTP2 请求。
目前尝试这样做会导致:
负责人http://localhost:2076/completed/764c1b6bc55548707507a2dd25570483a7216bf4: http2: 不支持的方案
要强制使用http2,我相信我需要将http.Client.Transport.TLSConfig.NextProtos 设置为[]string{"h2"}。
还需要什么?
【问题讨论】: