Methods
- A
- C
- H
- I
- N
- P
- R
- U
Constants
DEFAULT_ENV | = | Rack::MockRequest.env_for('/') |
Class Public methods
new(env = {})
Link
new(env = {})
Link
# File actionpack/lib/action_dispatch/testing/test_request.rb, line 14 def initialize(env = {}) env = Rails.application.env_config.merge(env) if defined?(Rails.application) && Rails.application super(DEFAULT_ENV.merge(env)) self.host = 'test.host' self.remote_addr = '0.0.0.0' self.user_agent = 'Rails Testing' end
Instance Public methods
accept=(mime_types)
Link
action=(action_name)
Link
host=(host)
Link
if_modified_since=(last_modified)
Link
if_none_match=(etag)
Link
path=(path)
Link
port=(number)
Link
rack_cookies()
Link
remote_addr=(addr)
Link
request_method=(method)
Link
request_uri=(uri)
Link