Skip to content

document whether http.Response.Body is ever nil #2208

@bradfitz

Description

@bradfitz
document whether http.Response.Body is ever nil

It doesn't look like it ever is, but it should be documented as a guarantee if so.

Even for HEAD responses with no body, it appears that we always set it to a non-nil
reader that immediately EOFs.

Add some tests too, or verify that they already exist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions