Re: [grpc-io] protobuf.Empty

23 views
Skip to first unread message
Message has been deleted

Jan Tattermusch

unread,
May 9, 2017, 4:27:56 AM5/9/17
to reu...@gmail.com, grpc.io
200 is a HTTP status code and has nothing to do with message payload.

If you send protobuf.Empty as a request/response of an RPC, gRPC will end up sending an RPC in a usual way, but the payload will be 0 bytes (protobuf.Empty serializes to a byte array of size 0, but so can other messages that don't have their fields set).

On Tue, May 9, 2017 at 10:02 AM, <reu...@gmail.com> wrote:

Hi , 
In translation from grpc to http - did  protobuf.Empty is translate to 200 ?  or to nothing ?

Thanks

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/8b52b918-ade2-4fc4-8404-25a596fde1b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages