<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>oggata</author_name>
  <author_url>https://blog.hatena.ne.jp/oggata/</author_url>
  <blog_title>oggataの日記</blog_title>
  <blog_url>https://oggata.hatenadiary.org/</blog_url>
  <categories>
    <anon>node</anon>
  </categories>
  <description>clientサイドでゲームを作る時に、 簡単にjsonレスポンスを返すmockが欲しかったので、nodeのhttpを使って実装してみた。 単純に入力されたパスによって返すjsonファイルを入れ替えるだけのサンプル。 setTimeoutなどを入れたり、応答時間のテストなど、ほかにもmockとして機能を入れれば使えそう。 sample /* http://localhost:3000/load_data_001〜002.json で接続するとdata001〜002のjsonを返すサンプル。 実行&gt;node game_json_mock.js 3000 */ var http = require(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Foggata.hatenadiary.org%2Fentry%2F20140415%2F1397535164&quot; title=&quot;Node.jsでjsonを返すmockの作成 - oggataの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-04-15 13:12:44</published>
  <title>Node.jsでjsonを返すmockの作成</title>
  <type>rich</type>
  <url>https://oggata.hatenadiary.org/entry/20140415/1397535164</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
