Class: HTTPX::Plugins::Compression::Decoder

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/httpx/plugins/compression.rb

Instance Method Summary collapse

Constructor Details

#initialize(inflater) ⇒ Decoder

Returns a new instance of Decoder.


131
132
133
# File 'lib/httpx/plugins/compression.rb', line 131

def initialize(inflater)
  @inflater = inflater
end

Instance Method Details

#decode(chunk) ⇒ Object


135
136
137
# File 'lib/httpx/plugins/compression.rb', line 135

def decode(chunk)
  @inflater.inflate(chunk)
end