The net module is no longer imported.
h3rald h3rald@h3rald.com
Sun, 29 Sep 2024 11:11:47 +0200
3 files changed,
14 insertions(+),
14 deletions(-)
M
next-release.md
→
next-release.md
@@ -54,7 +54,8 @@ - **store** mdule: renamed **dswrite** to **store.write**
- **store** mdule: renamed **dsread** to **store.read** - The **crypto** module is no longer imported. - The **math** module is no longer imported. -- **math** mdule: renamed **r2g** to **math.r2d** +- **math** module: renamed **r2g** to **math.r2d** +- The **net** module is no longer imported.
M
prelude.min
→
prelude.min
@@ -1,5 +1,4 @@
; Imports -'net import 'http import 'xml import ; Unseal prompt symbol
M
tests/net.min
→
tests/net.min
@@ -3,25 +3,25 @@ ;;;
"net" test.describe - {} socket :srv1 - {} socket :srv2 - {} socket :cli1 - {} socket :cli2 + {} net.socket :srv1 + {} net.socket :srv2 + {} net.socket :cli1 + {} net.socket :cli2 - {} socket "postman-echo.com" 80 connect @cli1 + {} net.socket "postman-echo.com" 80 net.connect @cli1 "min v$1" (version) => % :user-agent "GET /get HTTP/1.1\r\nHost: postman-echo.com\r\nUser-Agent: $1\r\n\r\n" (user-agent) => % :req "" :response - cli1 req send + cli1 req net.send - cli1 recv-line :line + cli1 net.recv-line :line (response line) => "\n" join @response (line "HTTP/1.1 200 OK" == not) ( - cli1 recv-line @line + cli1 net.recv-line @line (response line) => "\n" join puts @response ) while@@ -33,7 +33,7 @@ (cli1 cli2 !=) test.assert
test.report stack.clear - srv1 close - srv2 close - cli1 close - cli2 close + srv1 net.close + srv2 net.close + cli1 net.close + cli2 net.close