Class Index [+]

Quicksearch

Rack::Response::Helpers

Attributes

headers[R]

Headers

original_headers[R]

Headers

Public Instance Methods

client_error?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 150
150:       def client_error?;  @status >= 400 && @status < 500;       end
content_length() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 171
171:       def content_length
172:         cl = headers["Content-Length"]
173:         cl ? cl.to_i : cl
174:       end
content_type() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 167
167:       def content_type
168:         headers["Content-Type"]
169:       end
empty?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 158
158:       def empty?;         [201, 204, 304].include?      @status; end
forbidden?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 154
154:       def forbidden?;     @status == 403;                        end
include?(header) click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 163
163:       def include?(header)
164:         !!headers[header]
165:       end
informational?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 147
147:       def informational?; @status >= 100 && @status < 200;       end
invalid?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 145
145:       def invalid?;       @status < 100 || @status >= 600;       end
location() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 176
176:       def location
177:         headers["Location"]
178:       end
not_found?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 155
155:       def not_found?;     @status == 404;                        end
ok?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 153
153:       def ok?;            @status == 200;                        end
redirect?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 157
157:       def redirect?;      [301, 302, 303, 307].include? @status; end
redirection?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 149
149:       def redirection?;   @status >= 300 && @status < 400;       end
server_error?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 151
151:       def server_error?;  @status >= 500 && @status < 600;       end
successful?() click to toggle source

(Not documented)

     # File lib/rack/response.rb, line 148
148:       def successful?;    @status >= 200 && @status < 300;       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.