Class: HTTPX::Plugins::Compression::Decoder
- Inherits:
-
Object
- Object
- HTTPX::Plugins::Compression::Decoder
- Extended by:
- Forwardable
- Defined in:
- lib/httpx/plugins/compression.rb
Instance Method Summary collapse
- #decode(chunk) ⇒ Object
-
#initialize(inflater) ⇒ Decoder
constructor
A new instance of Decoder.
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 |