Class: UserAgentEchoService

Inherits:
Object show all
Includes:
GRPC::GenericService
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/user_agent_spec.rb

Overview

a test service that checks the cert of its peer

Instance Method Summary collapse

Methods included from GRPC::GenericService

included, underscore

Instance Method Details

#an_rpc(_req, call) ⇒ Object



22
23
24
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/grpc-1.50.0-x86_64-linux/src/ruby/spec/user_agent_spec.rb', line 22

def an_rpc(_req, call)
  EchoMsg.new(msg: call.['user-agent'])
end