net/http: document when (RoundTripper).RoundTrip may return a nil *Response #37599
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
(Factored out from #37598.)
The
net/http.RoundTripper
interface is currently ambiguous about what happens in case of errors.Its documentation says:
but:
Unfortunately, it does not specify whether “failure to obtain a response” may correspond to a nil
*Response
, or only one that is only partially populated.CC @bradfitz @rsc
The text was updated successfully, but these errors were encountered: