You certainly can! Which language are you working in?
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/abea5ca0-06ba-4edf-be4f-195432a42c6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'm using Python, I really need this.
在 2016年4月1日星期五 UTC+8下午9:57:17,Craig Tiller写道:You certainly can! Which language are you working in?
On Fri, Apr 1, 2016, 12:01 AM <soun...@gmail.com> wrote:I know how to pass metadata from client to server, could I return metadata from server to client?
On Fri, Apr 1, 2016 at 7:35 AM, <soun...@gmail.com> wrote:
And Im grep ServicerContext in the code, I found MethodImplementation.In MethodImplementation comments is:The implementation of the method as a callable value that takes a request value and a ServicerContext object and returns a response value.It seems receive request and context and return response, return value did not include a context object.
But I'm still don't know how to send from server
server implclass JediServiceImpl(jedi_pb2.BetaJediServiceServicer):def touch(self, request, context):
# just return hostnamehostname = platform.node()return common_pb2.TouchResponse(status_code=common_pb2.OK,hostname=hostname)