Skip to content

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

Closed
@bradfitz

Description

@bradfitz

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions