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.



153
154
155
# File 'lib/httpx/plugins/compression.rb', line 153

def initialize(inflater)
  @inflater = inflater
end

Instance Method Details

#decode(chunk) ⇒ Object



157
158
159
# File 'lib/httpx/plugins/compression.rb', line 157

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