update Net.Http.Get example

This commit is contained in:
2025-07-31 20:46:02 +03:00
parent 2951fd2da9
commit 148ca53538

View File

@@ -1,4 +1,16 @@
local resp = Net.Http.Get(true, "https://google.com")
local reqAddr
if In.Params and In.Params.url then
reqAddr = In.Params.url
else
Out.Error = {
code = -32602,
message = "no url provided"
}
return
end
local resp = Net.Http.Get(true, reqAddr)
if resp then
Out.Result.answer = {
status = resp.status,