Skip to content

net/http: provide TLS info in http.Response #7289

Closed
@pquerna

Description

@pquerna
Simple use case: Log the client ciphers used to do a HTTPS request.

When acting as a HTTPS client, Responses returned by the RoundTripper do not have a way
to tell what connection was used to do the work. 

When acting as a server, http.Request.TLS is set to the tls.ConnectionState.  It seems
reasonable to add an optionally filled TLS member to the http.Response struct, and set
it when using a TLS Client Connection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions