From 59845e610f2c90474f34079d27b5f1e07071ded4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 6 Apr 2025 13:40:17 -0400 Subject: Deprecate `!!` print statement --- examples/http/http.tm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/http') diff --git a/examples/http/http.tm b/examples/http/http.tm index ce74d010..12d9978e 100644 --- a/examples/http/http.tm +++ b/examples/http/http.tm @@ -97,17 +97,17 @@ func delete(url:Text, data:Text?=none, headers=["Content-Type: application/json" return _send(DELETE, url, data, headers) func main(): - !! GET: + say("GET:") say(get("https://httpbin.org/get").body) - !! Waiting 1sec... + say("Waiting 1sec... sleep(1) - !! POST: + say("POST:") say(post("https://httpbin.org/post", `{"key": "value"}`).body) - !! Waiting 1sec... + say("Waiting 1sec...") sleep(1) - !! PUT: + say("PUT:") say(put("https://httpbin.org/put", `{"key": "value"}`).body) - !! Waiting 1sec... + say("Waiting 1sec...") sleep(1) - !! DELETE: + say("DELETE:") say(delete("https://httpbin.org/delete").body) -- cgit v1.2.3