summaryrefslogtreecommitdiffhomepage
path: root/default.lua
blob: dc4237e2833d19ef13d7bab5ca83f5c218336cef (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 (stream)
	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