microservice.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:gemstone 作者: vladcalin 项目源码 文件源码
def make_tornado_app(self):
        """
        Creates a :py:class`tornado.web.Application` instance that respect the
        JSON RPC 2.0 specs and exposes the designated methods. Can be used
        in tests to obtain the Tornado application.

        :return: a :py:class:`tornado.web.Application` instance
        """

        handlers = [
            (self.endpoint, TornadoJsonRpcHandler, {"microservice": self})
        ]

        self._add_extra_handlers(handlers)
        self._add_static_handlers(handlers)

        return Application(handlers, template_path=self.template_dir)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号