I’ve got this bit of code here:
local http = require("socket.http")
I know it’s supposed to allow me to use some stuff from somewhere else but I have a couple of questions.
Where does it expect to find “socket.http”?
What should it expect? A DLL? A Lua script? Both?
requirecan load both DLLs and libraries written in Lua. It looks for them usingpackage.pathandpackage.cpath, in that order. For details, see the Lua reference manual.