Rack::Runtimeã¨ããRackããã«ã¦ã§ã¢ãããã¾ããããã¯ãªã¯ã¨ã¹ããå¦çããã®ã«ããã£ãæéã"X-Runtime"ã¨ããã¬ã¹ãã³ã¹ãããã«å«ãããã¨ãããã®ã§ããã³ã¼ãã¯ããâ
rack/runtime.rb at master · rack/rack
ããã¯Railsã®ããã©ã«ãã®Rackããã«ã¦ã§ã¢ã§ãããç¹ã«ä½ãããªãéãæå¹ã«ãªã£ã¦ãã¾ãã
ãã®X-Runtimeããã¿ã¤ãã³ã°æ»æã§ä½¿ããã¦ããäºä¾ããã£ãã¨ã®ãã¨ã§ãããã©ã«ãããåé¤ã«ãªãã¾ããã
Remove Rack::Runtime and deprecate referencing it · rails/rails@7bfcf4b
ããã«ãããæ示çã«Rack::Runtimeãããã«ã¦ã§ã¢ã§ä½¿ã宣è¨ãããªãéãã¯Rack::Runtimeã¯ä½¿ããªããªãã¾ã(Rails7.0ãã)ã
å®éã«ã¯X-Runtimeã®å¤ãè¦ãªãã¦ããã¬ã¹ãã³ã¹ã帰ã£ã¦ããæéãè¨æ¸¬ããã°(ãããã¯ã¼ã¯ãçµç±ãããã¨ã«ããå¤å°ã®èª¤å·®ã¯ããã¤ã¤ã)ã¿ã¤ãã³ã°æ»æã¯ã§ãã¦ãã¾ãã®ã§Rack::Runtimeã®åé¤ã®å¹æã¯éå®çã§ãããããæ®æ®µã®éçºã§ä½¿ã£ã¦ãªããªãRails7.0ãå¾ ããã«åé¤ãã¦ããã®ãããããããªãããªãã¨å人çã«ã¯æã£ã¦ãã¾ããâã®ã³ã¼ãã§ããã©ã«ãRackããã«ã¦ã§ã¢ããæ¶ããã®ã§ãæ¶ãããæ¹ã¯ããã§æ¶ãã¦ã¿ã¦ãã ããã
# config/application.rb config.middleware.delete Rack::Runtime
追è¨
åé¤ã®ã³ããããrevertãããã®ã§çµå±Rails7.0ã§ã使ãã¾ããrevertãããã®ã¯ä¸ã®æ¹ã§æ¸ãã
ã¬ã¹ãã³ã¹ã帰ã£ã¦ããæéãè¨æ¸¬ããã°(ãããã¯ã¼ã¯ãçµç±ãããã¨ã«ããå¤å°ã®èª¤å·®ã¯ããã¤ã¤ã)ã¿ã¤ãã³ã°æ»æã¯ã§ãã¦ãã¾ãã®ã§Rack::Runtimeã®åé¤ã®å¹æã¯éå®çã§ã
ãçç±ã®ããã§ã
Add back Rack::Runtime to the default middleware stack. · rails/rails@4ace047