Method: #maybe_echo_metadata

Defined in:
src/ruby/pb/test/server.rb

#maybe_echo_metadata(_call) ⇒ Object



117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'src/ruby/pb/test/server.rb', line 117

def (_call)
  
  # these are consistent for all interop tests
   = "x-grpc-test-echo-initial"
   = "x-grpc-test-echo-trailing-bin"

  if _call..has_key?()
    _call.[] = _call.[]
  end
  if _call..has_key?()
    _call.[] = _call.[]
  end
end