net/http: Client panics if RoundTripper returns neither response nor error #33563
What did you do?
Use a http.RoundTripper that returns neither response nor error.
What did you expect to see?
Documentation that the RoundTripper MUST return either response or error.
What did you see instead?
The text was updated successfully, but these errors were encountered:
Hello @Teelevision, thank you for filing this issue and welcome to the Go project!
So my apologies if am preaching to the choir; in Go, the idiomatic way of communicating
if we have the case of
Right above the lines that you quoted, we've got
which says that RoundTrip returns a Response.
Also I believe this doc already says what you'd like it to report
What do you think?