# File lib/action_dispatch/http/response.rb, line 43 43: def initialize(status = 200, header = {}, body = []) 44: @writer = lambda { |x| @body << x } 45: @block = nil 46: @length = 0 47: 48: @status, @header = status, header 49: self.body = body 50: 51: @cookie = [] 52: @sending_file = false 53: 54: @blank = false 55: 56: if content_type = self["Content-Type"] 57: type, charset = content_type.split(/;\s*charset=/) 58: @content_type = Mime::Type.lookup(type) 59: @charset = charset || "UTF-8" 60: end 61: 62: yield self if block_given? 63: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.