Class: GRPC::OpenTracing::HPACKCarrier

Inherits:
Object
  • Object
show all
Defined in:
lib/grpc/opentracing/hpack_carrier.rb

Instance Method Summary collapse

Constructor Details

#initialize(wrapped) ⇒ HPACKCarrier

Returns a new instance of HPACKCarrier.



4
5
6
# File 'lib/grpc/opentracing/hpack_carrier.rb', line 4

def initialize(wrapped)
  @wrapped = wrapped
end

Instance Method Details

#[](key) ⇒ Object



8
9
10
# File 'lib/grpc/opentracing/hpack_carrier.rb', line 8

def [](key)
  @wrapped[key.downcase]
end

#[]=(key, value) ⇒ Object



12
13
14
15
16
# File 'lib/grpc/opentracing/hpack_carrier.rb', line 12

def []=(key, value)
  return unless value

  @wrapped[key.downcase] = value
end

#each(&block) ⇒ Object



18
19
20
# File 'lib/grpc/opentracing/hpack_carrier.rb', line 18

def each(&block)
  @wrapped.each(&block)
end