golang/go

net/http: add GODEBUG=http1debug

Open

#18,733 opened on Jan 20, 2017

View on GitHub
 (29 comments) (39 reactions) (0 assignees)Go (19,008 forks)batch import
FeatureRequestNeedsFixProposal-Acceptedhelp wanted

Repository metrics

Stars
 (133,883 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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=...?

Contributor guide