Methods

Class Index [+]

Quicksearch

ActionDispatch::Response::Setup

Public Class Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.