class Puppet::Network::HTTP::Response

Public Instance Methods

respond_with(code, type, body) click to toggle source
# File lib/puppet/network/http/response.rb, line 7
def respond_with(code, type, body)
  @handler.set_content_type(@response, type)
  @handler.set_response(@response, body, code)
end

Public Class Methods

new(handler, response) click to toggle source
# File lib/puppet/network/http/response.rb, line 2
def initialize(handler, response)
  @handler = handler
  @response = response
end