| Server IP : 170.10.162.208 / Your IP : 216.73.216.38 Web Server : LiteSpeed System : Linux altar19.supremepanel19.com 4.18.0-553.69.1.lve.el8.x86_64 #1 SMP Wed Aug 13 19:53:59 UTC 2025 x86_64 User : deltahospital ( 1806) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/alt/ruby18/lib64/ruby/gems/1.8/doc/rack-1.6.1/ri/Rack/Builder/ |
Upload File : |
--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Specifies middleware to use in a stack.
- !ruby/struct:SM::Flow::VERB
body: " class Middleware\n def initialize(app)\n @app = app\n end\n\n def call(env)\n env["rack.some_header"] = "setting an example"\n @app.call(env)\n end\n end\n\n use Middleware\n run lambda { |env| [200, { "Content-Type" => "text/plain" }, ["OK"]] }\n"
- !ruby/struct:SM::Flow::P
body: All requests through to this application will first be processed by the middleware class. The <tt>call</tt> method in this example sets an additional environment key which then can be referenced in the application if required.
full_name: Rack::Builder#use
is_singleton: false
name: use
params: (middleware, *args, &block)
visibility: public