PoHttpServerCallback
(request: PoHttpServerRequest, response: PoHttpServerResponse): void
A callback that raises gives a 500 if nothing has been written; otherwise, the connection is closed.
v0.42.0Example
function(req, res)
print(req.path)
res:writeStatus("200 OK")
res:finish()
end