查看网站首页
查看网站首页
查看 sitemap.xml
✏️ 正在编辑: config.rb
路径:
/opt/alt/ruby30/share/gems/gems/rack-3.0.8/lib/rack/config.rb
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
# frozen_string_literal: true module Rack # Rack::Config modifies the environment using the block given during # initialization. # # Example: # use Rack::Config do |env| # env['my-key'] = 'some-value' # end class Config def initialize(app, &block) @app = app @block = block end def call(env) @block.call(env) @app.call(env) end end end
💾 保存文件
← 返回文件管理器