Created
July 5, 2016 09:41
-
-
Save knazarov/9b123aeb4be0fb563e56cd851d8f894a to your computer and use it in GitHub Desktop.
Tarantool ping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http = require('http.server') | |
httpd = http.new('0.0.0.0', 8080) | |
function check(self) | |
return { | |
status = 200, | |
headers = { ['content-type'] = 'text/html; charset=utf8' }, | |
body = [[ | |
<html> | |
<body>OK</body> | |
</html> | |
]] | |
} | |
end | |
httpd:route( | |
{ path = '/ping' }, check) | |
httpd:start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment