diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:40:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-06 13:40:17 -0400 |
| commit | 59845e610f2c90474f34079d27b5f1e07071ded4 (patch) | |
| tree | 1066ab6c5c6e6620adda6ac4575703b9d4bf0a0a /examples/http/http.tm | |
| parent | 95633b1cc2da5294d9aec8c7eb9fca9a15c1a8bf (diff) | |
Deprecate `!!` print statement
Diffstat (limited to 'examples/http/http.tm')
| -rw-r--r-- | examples/http/http.tm | 14 |
1 files changed, 7 insertions, 7 deletions
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) |
