Files
net/http/transport.go
Martin Robomaze b2d3a2b05b Add Transporter for wasm js target (#42)
* added js target specific roundtrip

* roundtrip_js dial parameter fix
2026-04-17 10:41:57 +02:00

28 lines
709 B
Go

// TINYGO: The following is copied and modified from Go 1.26.2 official implementation.
// Copyright 2011 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.
// HTTP client implementation. See RFC 7230 through 7235.
//
// This is the low-level Transport implementation of RoundTripper.
// The high-level interface is in client.go.
package http
import (
"io"
"sync/atomic"
)
type readTrackingBody struct {
io.ReadCloser
didRead bool // not atomic.Bool because only one goroutine (the user's) should be accessing
didClose atomic.Bool
}
type Transport struct{}
var DefaultTransport RoundTripper = &Transport{}