Http
get(url, timeout)
get(url, timeout)-- Example code showing how to use the function
local response = encoding.bytesToString(http.get("http://ip-api.com/json/24.48.0.1", 5000), "UTF-8")
local js = json.parse(response)
player.addMessage(js.country)get_with_headers(url, headers)
get_with_headers(url, headers)get_async_callback(url, function(response, error))
get_async_callback(url, function(response, error))get_async_with_headers_callback(url, headers, function(response, error))
get_async_with_headers_callback(url, headers, function(response, error))post_async_with_headers_callback(url, headers, json_body, function(response, error))
post_async_with_headers_callback(url, headers, json_body, function(response, error))Last updated