Skip to content

net/http: Responses should have a field for connection information #7842

@gopherbot

Description

@gopherbot

by ask@develooper.com:

Similar to the new TLS field with the tls.ConnectionState in the http.Response struct
it'd be useful to get access to some connection information.

For my use case I was missing the IP the client connected to (RemoteAddr); I am not sure
if there's other information in the current connection API that would be useful to
expose.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions