Commits

zhihu  committed 77ff1aa

update README

  • Participants
  • Parent commits a224971

Comments (0)

Files changed (1)

 实现一个Service:
 
 >>> 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注册一个唯一的名字: