mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-16 02:33:29 +00:00
Add Transporter for wasm js target (#42)
* added js target specific roundtrip * roundtrip_js dial parameter fix
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// TINYGO: The following is copied and modified from Go 1.21.4 official implementation.
|
||||
|
||||
//go:build !js
|
||||
|
||||
package http
|
||||
|
||||
// RoundTrip implements a RoundTripper over HTTP.
|
||||
func (t *Transport) RoundTrip(req *Request) (*Response, error) {
|
||||
return roundTrip(req)
|
||||
}
|
||||
Reference in New Issue
Block a user