mirror of
https://github.com/akyaiy/GoSally-mvp.git
synced 2026-01-03 04:52:26 +00:00
add Net.Http.Get usage example
This commit is contained in:
13
com/Net/GetExpl.lua
Normal file
13
com/Net/GetExpl.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
local resp = Net.Http.Get(true, "https://google.com")
|
||||
if resp then
|
||||
Out.Result.answer = {
|
||||
status = resp.status,
|
||||
body = resp.body
|
||||
}
|
||||
return
|
||||
end
|
||||
|
||||
Out.Result.answer = {
|
||||
status = resp.status
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user