Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
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?
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?