Search code examples
rubymetadatagrpc

How to add metadata through grpc ruby client?


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


Solution

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

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