class HTTPX::Plugins::GRPC::Call

  1. lib/httpx/plugins/grpc/call.rb
Superclass: Object

Encapsulates call information

Methods

Public Class

  1. new

Public Instance

  1. decoder
  2. inspect
  3. metadata
  4. to_s
  5. trailing_metadata

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
to_s()
[show source]
   # File lib/httpx/plugins/grpc/call.rb
21 def to_s
22   grpc_response.to_s
23 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