Method: HTTParty::ClassMethods#skip_decompression

Defined in:
lib/httparty.rb

#skip_decompression(value = true) ⇒ Object

Deactivate automatic decompression of the response body. This will require you to explicitly handle body decompression by inspecting the Content-Encoding response header.

Refer to docs/README.md “HTTP Compression” section for further details.

Examples:

class Foo
  include HTTParty
  skip_decompression
end


417
418
419
# File 'lib/httparty.rb', line 417

def skip_decompression(value = true)
  default_options[:skip_decompression] = !!value
end