Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 1.41 KB

File metadata and controls

83 lines (58 loc) · 1.41 KB

Http

Functions

Get

Parameters:

Name Type Description
url string URL link

Return value:

Name Type Description
content string Content of provided URL
local google_content = Http.Get("https://google.com")

Post

Parameters:

Name Type Description
url string URL link
params string POST Parameters

Return value:

Name Type Description
content string Content of provided URL
local google_content = Http.Post("https://google.com", "somedata=somevalue")

GetAsync

Parameters:

Name Type Description
url string URL link
callback function -

Return value:

Name Type Description
content string Content of provided URL
Http.GetAsync("https://google.com", function(url_content)
  print(url_content)
end)

PostAsync

Parameters:

Name Type Description
url string URL link
params string POST Parameters
callback function -

Return value:

Name Type Description
content string Content of provided URL
Http.PostAsync("https://google.com", "somedata=somevalue", function(url_content)
  print(url_content)
end)