Sinatra+Thinã§ãã©ããããHTTPã§åå¾ããçµæãå å·¥ãã¦åºåããããã¨ããå ´åã require "open-uri" get("/") do open("http://example.com/"){ |f| f.read() } end ã§ãããã®ã§ãããããã ã¨example.comããã®è¿çå¾ ã¡ã®éãEventMachineãå®å ¨ã«æ¢ã¾ã£ã¦ãã¾ãã®ããã¾ãã¡ã§ããããã§em-http-requestã使ããã¨ããã®ã§ãããããã«ã¯ãã³ãã©ã®ã¬ã¹ãã³ã¹ãéåæã«è¿ãå¿ è¦ãããã¾ããã©ããããã ããã¨æã£ãã®ã§ãããasync_sinatraã¨ãããã®ãããããã§ãã $ sudo gem install async_sinatra em-http-requestrequire "sinatra/async" require "em-http" register(Sinat
{{#tags}}- {{label}}
{{/tags}}