Prashant Agarwal Prashant Agarwal - 1 year ago 116
Ruby Question

How to add metadata through grpc ruby client?

How to add metadata through grpc ruby client? example code snippet will help.

Answer Source

Metadata is an optional parameter to any method call. For example:

metadata = { 'key' : 'value' }
response = service.method(argument, metadata)