~ubuntu-branches/ubuntu/wily/puppet/wily

« back to all changes in this revision

Viewing changes to lib/puppet/network/http/response.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-04-17 14:50:28 UTC
  • mfrom: (3.1.59 sid)
  • Revision ID: package-import@ubuntu.com-20140417145028-j3p3dwvp8ggpzvaf
Tags: 3.5.1-1
ImportedĀ upstreamĀ releaseĀ 3.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class Puppet::Network::HTTP::Response
 
2
  def initialize(handler, response)
 
3
    @handler = handler
 
4
    @response = response
 
5
  end
 
6
 
 
7
  def respond_with(code, type, body)
 
8
    @handler.set_content_type(@response, type)
 
9
    @handler.set_response(@response, body, code)
 
10
  end
 
11
end