go transport_default_other 源码

  • 2022-07-15
  • 浏览 (915)

golang transport_default_other 代码

文件路径:/src/net/http/transport_default_other.go

// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build !(js && wasm)
// +build !js !wasm

package http

import (
	"context"
	"net"
)

func defaultTransportDialContext(dialer *net.Dialer) func(context.Context, string, string) (net.Conn, error) {
	return dialer.DialContext
}

相关信息

go 源码目录

相关文章

go alpn_test 源码

go client 源码

go client_test 源码

go clientserver_test 源码

go clone 源码

go cookie 源码

go cookie_test 源码

go doc 源码

go example_filesystem_test 源码

go example_handle_test 源码

0  赞