golang/go

net/http: add GODEBUG=http1debug

Open

#18,733 创建于 2017年1月20日

在 GitHub 查看
 (29 评论) (39 反应) (0 负责人)Go (19,008 fork)batch import
FeatureRequestNeedsFixProposal-Acceptedhelp wanted

仓库指标

Star
 (133,883 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

The GODEBUG knob for http2 debugging (e.g. GODEBUG=http2debug=2) has proven to be very useful and popular.

Unfortunately it only works for HTTP/2.

There is code in the net/http package to do a similar thing for HTTP/1, but it's not accessible via an environment variable. Should we make it accessible with GODEBUG=http1debug=...?

贡献者指南