callã®è¿ãå¤ã®é åºã¨Rack::Response.newã®å¼æ°ã®é åºãéã£ãã®ã§ã¡ã¢ã*ã§å±éã§ããã楽ã ã£ãã®ã«ãªãã class GreatMiddleware def initialize(app) @app = app end def call(env) result = @app.call(env) response = Rack::Response.new(result[2], result[0], result[1]) great_method(response) return result end private def great_method(response) # snip end end
{{#tags}}- {{label}}
{{/tags}}