# File lib/rack/response.rb, line 117
117: def client_error?; @status >= 400 && @status < 500; end
# File lib/rack/response.rb, line 138
138: def content_length
139: cl = headers["Content-Length"]
140: cl ? cl.to_i : cl
141: end
# File lib/rack/response.rb, line 134
134: def content_type
135: headers["Content-Type"]
136: end
# File lib/rack/response.rb, line 125
125: def empty?; [201, 204, 304].include? @status; end
# File lib/rack/response.rb, line 121
121: def forbidden?; @status == 403; end
# File lib/rack/response.rb, line 130
130: def include?(header)
131: !!headers[header]
132: end
# File lib/rack/response.rb, line 114
114: def informational?; @status >= 100 && @status < 200; end
# File lib/rack/response.rb, line 112
112: def invalid?; @status < 100 || @status >= 600; end
# File lib/rack/response.rb, line 143
143: def location
144: headers["Location"]
145: end
# File lib/rack/response.rb, line 122
122: def not_found?; @status == 404; end
# File lib/rack/response.rb, line 120
120: def ok?; @status == 200; end
# File lib/rack/response.rb, line 124
124: def redirect?; [301, 302, 303, 307].include? @status; end
# File lib/rack/response.rb, line 116
116: def redirection?; @status >= 300 && @status < 400; end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.