Source code distributed/http/health.py

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
from tornado import web


class HealthHandler(web.RequestHandler):
    def get(self):
        self.write("ok")
        self.set_header("Content-Type", "text/plain")


routes = [("/health", HealthHandler, {})]