主ã«å¤é¨ã®APIã絡ãã§ããã¢ããªã®ãã¹ãã«ä½¿ããã¢ã¸ã¥ã¼ã«ã§ããNode.jsã®æ¨æºã¢ã¸ã¥ã¼ã«ã§ããhttpã§ã¯ãªããrequestã¨ããã¢ã¸ã¥ã¼ã«çµç±ã®HTTPã¢ã¯ã»ã¹ãä¹ã£åã£ã¦ã¬ã¹ãã³ã¹ãå½è£ ãã¾ãã ctide/fakeweb â GitHub npmã§å ¥ãããã¨ãåºæ¥ã¾ãã npm install request node-fakeweb 使ãæ¹ã¯ä¸è¨ã®ããã«ãã¾ãã var request = require('request'); var fakeweb = require('node-fakeweb'); fakeweb.allowNetConnect = false; fakeweb.registerUri({ uri: "http://www.google.co.jp:80/", statusCode: 200, body: "Hello World!" }); re
{{#tags}}- {{label}}
{{/tags}}