PHP 8.2.31
Preview: cdesc-MockRequest.yaml Size: 1.83 KB
/proc/thread-self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/MockRequest/cdesc-MockRequest.yaml

--- !ruby/object:RI::ClassDescription 
attributes: []

class_methods: 
- !ruby/object:RI::MethodSummary 
  name: env_for
- !ruby/object:RI::MethodSummary 
  name: new
- !ruby/object:RI::MethodSummary 
  name: parse_uri_rfc2396
comment: 
- !ruby/struct:SM::Flow::P 
  body: Rack::MockRequest helps testing your Rack application without actually using HTTP.
- !ruby/struct:SM::Flow::P 
  body: After performing a request on a URL with get/post/put/patch/delete, it returns a MockResponse with useful helper methods for effective testing.
- !ruby/struct:SM::Flow::P 
  body: You can pass a hash with additional configuration to the get/post/put/patch/delete.
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:input</tt>:"
    body: A String or IO-like to be used as rack.input.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:fatal</tt>:"
    body: Raise a FatalWarning if the app writes to rack.errors.
  - !ruby/struct:SM::Flow::LI 
    label: "<tt>:lint</tt>:"
    body: If true, wrap the application in a Rack::Lint.
  type: :NOTE
constants: 
- !ruby/object:RI::Constant 
  comment: 
  name: DEFAULT_ENV
  value: "{       \"rack.version\" => Rack::VERSION,       \"rack.input\" => StringIO.new,       \"rack.errors\" => StringIO.new,       \"rack.multithread\" => true,       \"rack.multiprocess\" => true,       \"rack.run_once\" => false,     }"
full_name: Rack::MockRequest
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: delete
- !ruby/object:RI::MethodSummary 
  name: get
- !ruby/object:RI::MethodSummary 
  name: head
- !ruby/object:RI::MethodSummary 
  name: options
- !ruby/object:RI::MethodSummary 
  name: patch
- !ruby/object:RI::MethodSummary 
  name: post
- !ruby/object:RI::MethodSummary 
  name: put
- !ruby/object:RI::MethodSummary 
  name: request
name: MockRequest
superclass: Object

Directory Contents

Dirs: 2 × Files: 12

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:50:09
Edit Download
- drwxr-xr-x 2024-03-03 22:50:09
Edit Download
1.83 KB lrw-r--r-- 2019-12-05 22:14:01
Edit Download
189 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
294 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
183 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
185 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
174 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
191 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
370 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
187 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
185 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
183 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
208 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).