Skip to content

net/http: ReadResponse needs a Request #5583

Closed
@taruti

Description

@taruti
Currently reading a HTTP Response needs a Request. However in some cases where the exact
bits on the wire are important (faulty clients + firewalls) custom request types are
needed for things like getting header order exactly desired. 

http://play.golang.org/p/Hq8CgZcFwD
demonstrates the code.

https://golang.org/cl/9821043/ has a fix removing the need for a Request in
ReadResponse.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions