Parent

Methods

Class Index [+]

Quicksearch

Rack::ForwardRequest

Rack::ForwardRequest gets caught by Rack::Recursive and redirects the current request to the app at url.

  raise ForwardRequest.new("/not-found")

Attributes

url[R]
env[R]

Public Class Methods

new(url, env={}) click to toggle source
    # File lib/rack/recursive.rb, line 13
13:     def initialize(url, env={})
14:       @url = URI(url)
15:       @env = env
16: 
17:       @env["PATH_INFO"] =       @url.path
18:       @env["QUERY_STRING"] =    @url.query  if @url.query
19:       @env["HTTP_HOST"] =       @url.host   if @url.host
20:       @env["HTTP_PORT"] =       @url.port   if @url.port
21:       @env["rack.url_scheme"] = @url.scheme if @url.scheme
22: 
23:       super "forwarding to #{url}"
24:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.