class TestAltApp::AltRequest

Attributes

env[R]
path_info[RW]
path_parameters[RW]
script_name[RW]

Public Class Methods

new(env) click to toggle source
Calls superclass method ActionDispatch::Request::new
# File actionpack/test/dispatch/routing_test.rb, line 3775
def initialize(env)
  @path_parameters = {}
  @env = env
  @path_info = "/"
  @script_name = ""
  super
end

Public Instance Methods

ip() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3787
def ip
  "127.0.0.1"
end
request_method() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3783
def request_method
  "GET"
end
x_header() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 3791
def x_header
  @env["HTTP_X_HEADER"] || ""
end