Skip to content

HTTP Module

The http module sends requests to whitelisted external domains and processes JSON responses.

FunctionArgumentsDescription
http.get(url)stringFetches data from a URL.
http.post(url, data)string, stringSends a POST request with a string body.
http.request(url, method, body, headers)string, string, string, listSends a custom HTTP request with the given method, body, and headers.
http.jsonEncode(table)tableConverts a table into a JSON string.
http.jsonDecode(json)stringConverts a JSON string back into a table.
lau-compiler.exe
varol response = http.get("https://jsonplaceholder.typicode.com/posts/1")
varol data = http.jsonDecode(response)
print("[Network] Command received: " + data.title)
OUTPUT:
[Network] Command received: Move North
lau-compiler.exe
varol response = http.request("https://jsonplaceholder.typicode.com/posts/1", "GET", "", {})
print("GET /posts/1 response received")
print(response)
OUTPUT:
GET /posts/1 response received

  • Standard servers: 70 requests per minute
  • Private servers: 200 requests per minute
  • Request timeout: 5 seconds
  • Whitelist only: approved domains only

  • generativelanguage.googleapis.com (Gemini)
  • api.openai.com (OpenAI)
  • api-inference.huggingface.co
  • api.groq.com (High-speed LLM)
  • api.anthropic.com (Claude)
  • api.deepseek.com
  • api.aleph-alpha.com
  • openrouter.ai
  • pollinations.ai / gen.pollinations.ai