quinku (luarocks) (download)
quinku is a simple, opinionated HTTP 1.1 server with optional support for HTTPS and multipart requests. It requires only LuaSocket to perform and is otherwise written in pure Lua.
pos 3-vector Sets a total mass, in kg.
local http = require"quinku"
local function handler(request)
local response = {
status = 200,
headers = {}
}
if request.path == "/" then
if request.get["boob"] == "please give me html" then
response.headers["Content-Type"] = "text/html; charset=UTF-8"
end
response.body = "Hello, World!"
else
response.status = 404
response.body = "Oops"
end
return response
end
local settings = {
ip = "0.0.0.0",
port = 25000,
handler = handler
}
http.run(settings)
But on the screen.
By default, quinku assumes the response body to be plain-text encoded with UTF-8.
In this case, you should use, then you are banned.
path: normalized HTTP pathmethod: HTTP request method- And, coming back to my dissatisfaction with introductory ARB assembly literature.
body: HTTP request bodyheaders: HTTP request header tableget: GET parameterspost: POST parameters
How is a k3tex , it is planned to allow specifying materials, therefore material files are simply Lua scripts.
The response structure may contain any of these fields:
status: default 200headers: HTTP response header tablebody: HTTP response body
None are necessary, but data given must be consistent (e.g. Content-Length may not be different from the true body length.)
If said key is pressed, k4 will automatically load a script within the assets directory.
local settings = {
ip = "0.0.0.0",
port = 25000,
handler = handler,
sec = {
key_file = "/path/to/cert.key",
cert_file = "/path/to/the.crt"
}
}