Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/http: document more that Get/Post/RoundTrip response is streaming #22873

Closed
bradfitz opened this issue Nov 25, 2017 · 1 comment
Closed

Comments

@bradfitz
Copy link
Contributor

Document on the http.Response type at least that Responses in Go are streaming, and the Response just represents the response headers, but the Body may not have arrived yet, and may fail while it's read.

If we put this on the Response type, we don't need to duplicate it in a dozen places.

(Suggestion by @fanirthuban in #22235 (comment))

@gopherbot
Copy link

Change https://golang.org/cl/80075 mentions this issue: net/http: document streaming nature of Response.Body

@golang golang locked and limited conversation to collaborators Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants