Rackéå®ãªãããã rack-spyup ã¨ãããã®ãæ¸ãããèªåã§ä½¿ã£ã¦ã¿ããã©JSON APIã®ãããã°ã¨ãã ã¨é©å½çã«ä¾¿å©ã ã¨æãã ãã ãRackã«å°éããåã«ãªã¯ã¨ã¹ããã亡ããªãã«ãªã£ããã¨ãããããããµã¼ãã«ãã¼ãããªããã¨ãããã¨æãã®ã§ããã£ã¨æ±ç¨çãªæãã§ãã³ãããæé ãã¡ã¢ãã¦ã¿ãã ãªã¯ã¨ã¹ããæ¥ããå 容ãå ¨é¨ãã³ãããHTTPãµã¼ããä½ã Rubyã«æ¨æºæ·»ä»ããã¦ãããWEBrickã®åºæ¬çãªæ©è½ã§å²ã¨ç°¡åã«ä½ããã # -*- coding: utf-8 -*- require 'optparse' require 'webrick' require 'json' options = ARGV.getopts("p:", "port:") # The :monkey: raises # cf. http://d.hatena.ne.jp/vividcode/
{{#tags}}- {{label}}
{{/tags}}