Skip to content

x/net/http2: add DialTLSContext to Transport #52114

@Dreamacro

Description

@Dreamacro

net.Transport contains DialContext, but http2.Transport only contains DialTLS, so a similar DialTLSContext has been added to make http.Transport support context.

What's changed:

https://github.com/golang/net/blob/8e4df14915a2b0bef8fb1a2d5f67f1bcedc6ab31/http2/transport.go#L66-L88

This proposal only adds a new API, so there is no breaking change.

ref:
golang/net#123
https://go-review.googlesource.com/c/net/+/377114

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions