Commits

zhihu  committed a224971 Merge

Merge branch 'master' of github.com:ZhihuDev/Starry

  • Participants
  • Parent commits 9830756, 0d95112

Comments (0)

Files changed (1)

 
 >>> class SomeServiceHandler(SomeService):
 
-      def one_method(self, request):
-          response = Response()
-          response.value = request.value
-          return response
+...  def one_method(self, request):
+...      response = Response()
+...      response.value = request.value
+...      return response
 
 把Service注册到Server上, 一个Server上可以有多个Service,因此要给每个Service注册一个唯一的名字: