ãã¨ãã°ãã¼ã¢ã³ããã£ãã¨ãã¾ãããããªæãã§ã $ ruby -rwebrick -e 'include WEBrick; Daemon.start;\ HTTPServer.new(:Port => 3000).tap{|s|\ s.mount "/", HTTPServlet::ProcHandler.new(Proc.new{|req,res|\ res.body = "hi"});\ trap(:TERM){s.shutdown}\ }.start' ããã§3000çªã§HTTPãµã¼ããèµ·åãã¾ãããã¡ãã£ã¨ãªã¯ã¨ã¹ããã¦ã¿ã¾ãããã $ curl 'http://127.0.0.1:3000/' hi æå¾ éãåãã¾ããããã§ã¯ã¡ãã£ã¨ãã®ãã¼ã¢ã³ãä»ã©ããªç¶æ ãªã®ããç£è¦ã§ããããã«ãã¾ããã⦠ã£ã¦ãªãã¨å¤åããã°ãã©ã£ãã«ã¨ãã«ãªãã¾ããããã£ã¨ç°¡åã«ãªãã¨ãªãç¥ãæ¹æ³ã¨ã
{{#tags}}- {{label}}
{{/tags}}