PHP 8.2.31
Preview: run-i.yaml Size: 773 B
//proc/thread-self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Builder/run-i.yaml

--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Takes an argument that is an object that responds to #call and returns a Rack response. The simplest form of this is a lambda object:"
- !ruby/struct:SM::Flow::VERB 
  body: "  run lambda { |env| [200, { "Content-Type" => "text/plain" }, ["OK"]] }\n"
- !ruby/struct:SM::Flow::P 
  body: "However this could also be a class:"
- !ruby/struct:SM::Flow::VERB 
  body: "  class Heartbeat\n    def self.call(env)\n     [200, { "Content-Type" => "text/plain" }, ["OK"]]\n   end\n  end\n\n  run Heartbeat\n"
full_name: Rack::Builder#run
is_singleton: false
name: run
params: (app)
visibility: public

Directory Contents

Dirs: 0 × Files: 11

Name Size Perms Modified Actions
192 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
172 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
1.49 KB lrw-r--r-- 2019-12-05 22:14:01
Edit Download
786 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
222 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
215 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
773 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
173 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
905 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download
456 B lrw-r--r-- 2019-12-05 22:14:01
Edit Download

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