Module: Puppet::Network::HTTP::Compression::None

Defined in:
lib/puppet/network/http/compression.rb

Instance Method Summary collapse

Instance Method Details

#add_accept_encoding(headers) ⇒ Object


108
109
110
# File 'lib/puppet/network/http/compression.rb', line 108

def add_accept_encoding(headers)
  headers
end

#uncompress(response) {|IdentityAdapter.new| ... } ⇒ Object

Yields:


112
113
114
115
# File 'lib/puppet/network/http/compression.rb', line 112

def uncompress(response)
  Puppet.deprecation_warning(_('Puppet::Network::HTTP::Compression::None#uncompress is deprecated.'))
  yield IdentityAdapter.new
end

#uncompress_body(response) ⇒ Object


103
104
105
106
# File 'lib/puppet/network/http/compression.rb', line 103

def uncompress_body(response)
  Puppet.deprecation_warning(_('Puppet::Network::HTTP::Compression::None#uncompress_body is deprecated.'))
  response.body
end