Dial connects to the given network address and initiates a TLS handshake, returning the resulting TLS connection. The returned [Conn], if any, will always be of type *[Conn]. Dial uses context.Background internally; to specify the context, use [Dialer.DialContext].
(network, addr string)
| 668 | // Dial uses context.Background internally; to specify the context, |
| 669 | // use [Dialer.DialContext]. |
| 670 | func (d *Dialer) Dial(network, addr string) (net.Conn, error) { |
| 671 | return d.DialContext(context.Background(), network, addr) |
| 672 | } |
| 673 | |
| 674 | func (d *Dialer) netDialer() *net.Dialer { |
| 675 | if d.NetDialer != nil { |
no test coverage detected