Method: HTTPX::Response::Body.initialize_inflater_by_encoding
- Defined in:
- lib/httpx/response/body.rb
.initialize_inflater_by_encoding(encoding, response, **kwargs) ⇒ Object
:nodoc:
234 235 236 237 238 239 240 241 |
# File 'lib/httpx/response/body.rb', line 234 def initialize_inflater_by_encoding(encoding, response, **kwargs) # :nodoc: case encoding when "gzip" Transcoder::GZIP.decode(response, **kwargs) when "deflate" Transcoder::Deflate.decode(response, **kwargs) end end |