diff options
-rw-r--r-- | default.lua | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/default.lua b/default.lua index 14cdbc9..d3a0c61 100644 --- a/default.lua +++ b/default.lua @@ -1,13 +1,5 @@ --- Default client request handler. ---- @return string Body of the response -local -function handler (method, path, version, headers, data) - io.write("(", version, ") [", method, "] ", path, "\n") - for header, value in pairs(headers) do - io.write(" - ", header, " = '", value, "'\n") - end - print(data) - return [["Hello, from plop/Lua"]] +-- TODO: Add documentation once request and response API are more stable. +return function (method, path, version, headers, data) + return [["Hello from plop/lua!"]] end - -return handler |