Uname: Linux server105.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 68.65.120.251
Your Ip: 18.226.52.76
User: travtpib (6521) | Group: travtpib (6478)
Safe Mode: OFF
Disable Function:
NONE

name : use-i.yaml
--- !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
© 2025 GrazzMean-Shell