Encapsulates call information
Attributes
decoder | [W] |
Public Class methods
new(response)
[show source]
# File lib/httpx/plugins/grpc/call.rb 10 def initialize(response) 11 @response = response 12 @decoder = ->(z) { z } 13 @consumed = false 14 @grpc_response = nil 15 end
Public Instance methods
inspect()
[show source]
# File lib/httpx/plugins/grpc/call.rb 17 def inspect 18 "#GRPC::Call(#{grpc_response})" 19 end
metadata()
[show source]
# File lib/httpx/plugins/grpc/call.rb 25 def metadata 26 response.headers 27 end
trailing_metadata()
[show source]
# File lib/httpx/plugins/grpc/call.rb 29 def trailing_metadata 30 return unless @consumed 31 32 @response.trailing_metadata 33 end