Commit Graph

9 Commits

Author SHA1 Message Date
v1rtl 983d88dd7a add stub httptrace methods and interfaces 2025-08-10 12:22:57 +02:00
Dmytro 77be3968d1 add support for PathValue and SetPathValue from go v1.23.7 (#38)
* add support for PathValue and SetPathValue from go v1.23.7
* add TINYGO notice to pattern.go, proper copy paste of PathValue func
2025-06-11 14:26:56 +02:00
Dmitry Shemin e4c3cdf599 Add httptest package 2025-01-04 23:37:56 +01:00
Rajat Jindal 001ceab784 add bare minimum DefaultTransport (#32)
* add bare minimum DefaultTransport

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* use transport if explicitly configured by client

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

---------

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
2024-07-09 13:26:29 -07:00
deadprogram 5fb7acc7b0 http: add Client RoundTripper/Transport
Signed-off-by: deadprogram <ron@hybridgroup.com>
2023-12-08 00:26:31 +01:00
Scott Feldman 7c11b88ce6 update with changes from go1.20.5 to go1.21.4 2023-11-24 18:26:04 +01:00
Scott Feldman be25e1a28e revert some changes going from 1.19.3 to 1.20.5
There are some new features added in Go 1.20 like string.CutPrefix.
Those will have to wait to be ported until TinyGo MIN is >= 1.20.
2023-07-07 20:00:29 +02:00
Scott Feldman c3616d9365 update 'net' package from 1.19.3 to 1.20.5 2023-07-07 20:00:29 +02:00
Scott Feldman 693edae782 Add network device driver model, netdev
This PR adds a network device driver model called netdev. There will be a companion PR for TinyGo drivers to update the netdev drivers and network examples. This PR covers the core "net" package.

An RFC for the work is here: #tinygo-org/drivers#487. Some things have changed from the RFC, but nothing major.

The "net" package is a partial port of Go's "net" package, version 1.19.3. The src/net/README file has details on what is modified from Go's "net" package.

Most "net" features are working as they would in normal Go. TCP/UDP/TLS protocol support is there. As well as HTTP client and server support. Standard Go network packages such as golang.org/x/net/websockets and Paho MQTT client work as-is. Other packages are likely to work as-is.

Testing results are here (https://docs.google.com/spreadsheets/d/e/2PACX-1vT0cCjBvwXf9HJf6aJV2Sw198F2ief02gmbMV0sQocKT4y4RpfKv3dh6Jyew8lQW64FouZ8GwA2yjxI/pubhtml?gid=1013173032&single=true).
2023-07-07 20:00:29 +02:00