aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net/http/transport_default_js.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/http/transport_default_js.go')
-rw-r--r--libgo/go/net/http/transport_default_js.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/libgo/go/net/http/transport_default_js.go b/libgo/go/net/http/transport_default_js.go
new file mode 100644
index 0000000..c07d35e
--- /dev/null
+++ b/libgo/go/net/http/transport_default_js.go
@@ -0,0 +1,17 @@
+// 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 nil
+}