Skip to content

Getting started building new addon #2230

Closed Answered by carsakiller
Wolf-64 asked this question in Q&A
Discussion options

You must be logged in to vote

Ah, the http example is using Lua modules, so it creates http as a local table, inserts the functions into it, and returns http. In other words, the given example is not global and must be required:

local http = require("http")

http.get("https://github.com")

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Wolf-64
Comment options

@carsakiller
Comment options

@Wolf-64
Comment options

@carsakiller
Comment options

Answer selected by carsakiller
@Wolf-64
Comment options

@carsakiller
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feat/addon Related to addons
2 participants