summaryrefslogtreecommitdiffhomepage
path: root/default.lua
blob: 95ba6096f90ce980ea6126804b090194052773c2 (plain)
1
2
3
4
5
6
7
--- Default client request handler.
-- TODO: Add documentation once request and response API are more stable.
return function (method, path, version, headers, data)
	local response_data = [["Hello from plop/lua!"]]
	local headers = {Connection="close", ["Content-Length"]=#response_data, ["Content-Type"]="application/json"}
	return {status=200, headers=headers, data=response_data}
end