Rack::Request
nothing more than a rack request with some additional methods and overriding where the erros get written
# File lib/heel/request.rb, line 35 def base_uri @base_uri ||= ::Rack::Utils.unescape(path_info) end
# File lib/heel/request.rb, line 52 def for_directory? stat.directory? end
a request must be for something that below the root directory
# File lib/heel/request.rb, line 42 def forbidden? request_path.index(root_dir) != 0 end
a request is only good for something that actually exists and is readable
# File lib/heel/request.rb, line 48 def found? File.exist?(request_path) and (stat.directory? or stat.file?) and stat.readable? end
was the highlighting parameter true or false?
# File lib/heel/request.rb, line 62 def highlighting? return !(] off false ].include? self.GET['highlighting'].to_s.downcase) end
Generated with the Darkfish Rdoc Generator 2.