Prashant Agarwal Prashant Agarwal - 11 months ago 100
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)