ri > Rack::MockRequest

= Rack::MockRequest < Object

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Rack::MockRequest helps testing your Rack application without actually
using HTTP.

After performing a request on a URL with get/post/put/patch/delete, it
returns a MockResponse with useful helper methods for effective testing.

You can pass a hash with additional configuration to the
get/post/put/patch/delete.
:input:
  A String or IO-like to be used as rack.input.

:fatal:
  Raise a FatalWarning if the app writes to rack.errors.

:lint:
  If true, wrap the application in a Rack::Lint.

------------------------------------------------------------------------
= Constants:

DEFAULT_ENV:
  [not documented]


= Class methods:

  env_for
  new
  parse_uri_rfc2396

= Instance methods:

  delete
  get
  head
  options
  patch
  post
  put
  request

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 18:38 @216.73.216.177
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!