# File lib/puppet/network/http/mongrel/rest.rb, line 52
52:     def set_response(response, result, status = 200)
53:         # Set the 'reason' (or 'message', as it's called in Webrick), when
54:         # we have a failure, unless we're on a version of mongrel that doesn't
55:         # support this.
56:         if status < 300
57:             response.start(status) { |head, body| body.write(result) }
58:         else
59:             begin
60:                 response.start(status,false,result) { |head, body| body.write(result) }
61:             rescue ArgumentError
62:                 response.start(status)              { |head, body| body.write(result) }
63:             end
64:         end
65:     end