Parent

Methods

Files

HttpRouter::Request

Monkey patching the Request class. Using Rack::Utils.unescape rather than URI.unescape which can't handle utf-8 chars

Public Class Methods

new(path, rack_request) click to toggle source
# File lib/padrino-core/application/routing.rb, line 130
def initialize(path, rack_request)
  @rack_request = rack_request
  @path = Rack::Utils.unescape(path).split(/\//)
  @path.shift if @path.first == ''
  @path.push('') if path[-1] == //
  @extra_env = {}
  @params = []
  @acceptable_methods = Set.new
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.