diff options
author | 2016-04-26 15:24:35 -0700 | |
---|---|---|
committer | 2016-04-26 15:24:35 -0700 | |
commit | e6077b86ad6a52d0643173f5cac99bc0432175f2 (patch) | |
tree | 2cda142a715cc1945ca2b6bcd616d127a981a0a3 /src/ruby/lib | |
parent | 7d78ab20c8360a5049a7c2635eb1be70d9a0f3e9 (diff) | |
parent | deadbcdab185e237990dbb2e1ac46f4f1cff3672 (diff) |
Merge pull request #6233 from ewr/fetch-peer-cert-in-ruby
Add peer_cert method to Ruby call object
Diffstat (limited to 'src/ruby/lib')
-rw-r--r-- | src/ruby/lib/grpc/generic/active_call.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ruby/lib/grpc/generic/active_call.rb b/src/ruby/lib/grpc/generic/active_call.rb index 24cab950a7..ecf3cc3293 100644 --- a/src/ruby/lib/grpc/generic/active_call.rb +++ b/src/ruby/lib/grpc/generic/active_call.rb @@ -59,7 +59,8 @@ module GRPC include Core::CallOps extend Forwardable attr_reader(:deadline) - def_delegators :@call, :cancel, :metadata, :write_flag, :write_flag= + def_delegators :@call, :cancel, :metadata, :write_flag, :write_flag=, + :peer, :peer_cert # client_invoke begins a client invocation. # @@ -472,7 +473,7 @@ module GRPC # SingleReqView limits access to an ActiveCall's methods for use in server # handlers that receive just one request. SingleReqView = view_class(:cancelled, :deadline, :metadata, - :output_metadata) + :output_metadata, :peer, :peer_cert) # MultiReqView limits access to an ActiveCall's methods for use in # server client_streamer handlers. |