英文:
Rack::Chunked is deprecated and will be removed in Rack 3.1
问题
当我启动我的Rails应用程序时,我收到以下警告:
> /Users/dorianmariefr/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked已被弃用,将在Rack 3.1中移除
不确定如何修复此警告,有任何想法吗?
英文:
When I start my rails app I get:
> /Users/dorianmariefr/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/rack-3.0.7/lib/rack/chunked.rb:6: warning: Rack::Chunked is deprecated and will be removed in Rack 3.1
Not sure how to fix this warning, any idea?
答案1
得分: 5
如果你需要在你的应用程序中直接要求 Rack::Chuncked
,你可以要求 Rack
。 Rack::Chuncked
在一些文件中自动加载,比如 actionpack/lib/action_controller/metal/streaming.rb
。 Rack::Chunked
将在 Rack 3.1 与 Rails 8 中被完全移除。你可以查看 此链接 获取更多详细信息。
英文:
If you need to require Rack::Chuncked
directly in your app, you can require Rack
. Rack::Chuncked
is autoloaded in some files like actionpack/lib/action_controller/metal/streaming.rb
. Rack::Chunked
will be completely removed in Rack 3.1 with Rails 8. You can check this link for more details.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论