Code is Lua Editor for iOS. This app is very usefull to edit lua script, and run lua code immediately.
Feature
√ Support Lua code highlight
√ Support run lua code immediately
√ It is very usefull to run some code on mobile phone
Lua-cURLv3 example
local curl = require("cURL")
local PATH = PATH or ".."
local SSL_CERT_FILE = SSL_CERT_FILE or "/usr/local/share/cacert.pem"
-- HTTP Post
curl.easy()
:setopt_url('https://httpbin.org/post')
:setopt_writefunction(
function(str)
print(str)
end
)
:setopt_httppost(curl.form() -- Lua-cURL guarantee that form will be alive
:add_content("test_content", "some data", {
"MyHeader: SomeValue"
})
)
:setopt{
use_ssl = curl.USESSL_ALL,
cainfo = SSL_CERT_FILE,
}
:perform()
:close()
This update contains with fix bug about status bar on iOS15