Sha256: 873c0897317923a74fe1894ced619eea13cf158a3ca8bc7390f15ed554786897

Contents?: true

Size: 255 Bytes

Versions: 12

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true
class Puppet::Network::HTTP::MemoryResponse
  attr_reader :code, :type, :body

  def initialize
    @body = String.new
  end

  def respond_with(code, type, body)
    @code = code
    @type = type
    @body += body
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
puppet-8.2.0 lib/puppet/network/http/memory_response.rb
puppet-8.2.0-x86-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.2.0-x64-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.2.0-universal-darwin lib/puppet/network/http/memory_response.rb
puppet-8.1.0 lib/puppet/network/http/memory_response.rb
puppet-8.1.0-x86-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.1.0-x64-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.1.0-universal-darwin lib/puppet/network/http/memory_response.rb
puppet-8.0.1 lib/puppet/network/http/memory_response.rb
puppet-8.0.1-x86-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.0.1-x64-mingw32 lib/puppet/network/http/memory_response.rb
puppet-8.0.1-universal-darwin lib/puppet/network/http/memory_response.rb