{"id":11987,"date":"2014-12-15T00:00:56","date_gmt":"2014-12-14T15:00:56","guid":{"rendered":"http:\/\/labs.gree.jp\/blog\/?p=11987"},"modified":"2015-06-09T13:53:02","modified_gmt":"2015-06-09T04:53:02","slug":"%e5%88%9d%e3%82%81%e3%81%a6%e3%81%aehttp2%e3%82%b5%e3%83%bc%e3%83%90%e3%83%97%e3%83%83%e3%82%b7%e3%83%a5","status":"publish","type":"post","link":"https:\/\/labs.gree.jp\/blog\/2014\/12\/11987\/","title":{"rendered":"\u521d\u3081\u3066\u306eHTTP\/2\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5"},"content":{"rendered":"<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u6982\u8981\">\u306f\u3058\u3081\u306b<\/h2>\n<p>\u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u672c\u90e8\u306e\u5f8c\u85e4\u3067\u3059\u3002<\/p>\n<div class=\"entry-content\">\n<p>\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2014 15\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u524d\u56de\u306fWeb\u30b5\u30a4\u30c8\u3092HTTP\/2\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3092\u691c\u8a3c\u3057\u305f\u8a18\u4e8b\u3092\u66f8\u304b\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f(<a href=\"http:\/\/labs.gree.jp\/blog\/2014\/06\/10783\/\">HTTP2\u3092\u8a66\u3057\u3066\u307f\u308b<\/a>)\u3002<\/span><\/p>\n<p><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u3042\u308c\u304b\u3089\u5e7e\u3064\u304b\u306e\u8b70\u8ad6\u3092\u7d4c\u3066HTTP\/2\u306e\u4ed5\u69d8\u3082\u5927\u5206\u5b89\u5b9a\u3057\u3066\u304d\u3066\u304a\u308a\u3001HTTP\/2\u3092\u5b9f\u88c5\u3057\u305f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3084\u5b9f\u9a13\u7684\u306bHTTP\/2\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3082\u3042\u308b\u306e\u3067\u5b9f\u969b\u306b\u8a66\u3059\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u00a0<\/span><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u305d\u3053\u3067\u4eca\u56de\u306f\u5fdc\u7528\u7de8\u3068\u3057\u3066HTTP\/2\u306e\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306b\u3064\u3044\u3066\u3001\u305d\u306e\u4ed5\u7d44\u3068\u5b9f\u969b\u306b\u8a66\u3057\u305f\u3053\u3068\u306b\u3064\u3044\u3066\u66f8\u304b\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f59\u8ac7\u3067\u3059\u304c\u3001 \u73fe\u5728\u306e\u4ed5\u69d8\u3067\u306f <a href=\"http:\/\/http2.github.io\/faq\/#is-it-http20-or-http2\">\"HTTP2.0\" \u3067\u306f\u306a\u304f \"HTTP\/2\" \u3082\u3057\u304f\u306f \"HTTP2\" <\/a>\u304c\u6b63\u3057\u3044\u540d\u79f0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><\/h2>\n<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u6982\u8981\">HTTP\/2\u6982\u8981<\/h2>\n<p>\u307e\u305a\u3001\u8efd\u304fHTTP\/2\u306e\u6982\u8981\u306b\u89e6\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>HTTP\/2\u306f2012\u5e74\u306e\u672b\u9803\u3088\u308a\u3001HTTP\/1\u306e\u30bb\u30de\u30f3\u30c6\u30a3\u30af\u30b9\u3092\u7dad\u6301\u3057\u305f\u307e\u307e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6539\u5584\u3059\u308b\u76ee\u7684\u3067\u8b70\u8ad6\u304c\u958b\u59cb\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>Google\u306e\u8003\u6848\u3057\u305fSPDY\u3068\u8a00\u3046\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066\u304a\u308a\u3001\u4e00\u3064\u306eTCP\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u4e0a\u3067HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3084HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30d5\u30ec\u30fc\u30e0\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u3068\u3057\u3066\u591a\u91cd\u5316\u3057\u3066\u9001\u53d7\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u5358\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u591a\u91cd\u5316\u3059\u308b\u3060\u3051\u3067\u306a\u304f\u3001\u4ee5<span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u4e0b\u306e\u6a5f\u80fd\u3092\u6301\u3063\u3066\u3044\u307e\u3059<\/span><\/p>\n<ul style=\"list-style-type: square;\">\n<li>\u30d8\u30c3\u30c0\u5727\u7e2e\uff1a\u30cf\u30d5\u30de\u30f3\u7b26\u53f7\u3084\u8f9e\u66f8\u30c7\u30fc\u30bf\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001HTTP\u30d8\u30c3\u30c0\u3092\u5c11\u306a\u3044\u30c7\u30fc\u30bf\u3067\u8868\u73fe\u3059\u308b(h2-14\u3067\u304b\u306a\u308a\u7c21\u7565\u5316\u3055\u308c\u307e\u3057\u305f)<\/li>\n<li>\u512a\u5148\u4ed8\u3051\uff1a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u512a\u5148\u5ea6\u3092\u4ed8\u52a0\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308b<\/li>\n<li>\u30d5\u30ed\u30fc\u5236\u5fa1\uff1a\u5404\u901a\u4fe1\u5358\u4f4d\u3067\u30d5\u30ed\u30fc\u5236\u5fa1\u304c\u884c\u3048\u308b<\/li>\n<li>\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\uff1a\u30b5\u30fc\u30d0\u306f\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u7121\u304f\u3066\u3082\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u305b\u308b<\/li>\n<\/ul>\n<p>\u3069\u306e\u6a5f\u80fd\u3082\u975e\u5e38\u306b\u9762\u767d\u3044\u306e\u3067\u3059\u304c\u3001\u4eca\u56de\u306f\u305d\u306e\u4e2d\u306e\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u6982\u8981\">\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u6982\u8981<\/h2>\n<p><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">HTTP\/1\u3067\u306f\u3001\u30b5\u30fc\u30d0\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u3042\u3063\u3066\u521d\u3081\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002<\/span><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">HTTP\/2\u3067\u306f\u3001\u30b5\u30fc\u30d0\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u7121\u304f\u3066\u3082\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/span><\/p>\n<p>HTTP\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3068\u3044\u3046\u306e\u304c\u5c11\u3005\u30a4\u30e1\u30fc\u30b8\u304c\u6e67\u304d\u3065\u3089\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u3069\u3046\u3044\u3046\u4e8b\u304b\u4ee5\u4e0b\u306e\u56f3\u3067\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-13044\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065-600x250.png\" alt=\"fixed_image\" width=\"600\" height=\"250\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065-600x250.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065-276x115.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065-830x345.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/845427-7a5f967a903987490551918f6acf8c073c3c3065.png 1039w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305a\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30b5\u30fc\u30d0\u306bindex.html\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u307e\u3059\u3002\u3053\u306e\u6642\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305findex.html\u306fhoge.js\u3092\u8aad\u307f\u8fbc\u3080html\u3060\u3063\u305f\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u4fe1\u3057\u305f\u30b5\u30fc\u30d0\u306findex.html\u306e\u4e2d\u8eab\u3092\u77e5\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6b21\u306b\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089hoge.js\u304c\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u308b\u4e8b\u304c\u4e88\u60f3\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u3059\u308b\u3053\u3068\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u8981\u6c42\u306a\u3057\u306bhoge.js\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u8fd4\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306fhtml\u3092\u30d1\u30fc\u30b9\u3057\u3066\u304b\u3089\u6539\u3081\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u4fe1\u3059\u308b\u3088\u308a\u3082\u65e9\u304fhoge.js\u3092\u53d7\u3051\u53d6\u308c\u308b\u4e8b\u306b\u306a\u308a\u3001Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b\u306e\u306b\u5f85\u305f\u3055\u308c\u308b\u6642\u9593\u3082\u77ed\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u6982\u8981\">\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u4f53\u611f\u3059\u308b<\/h2>\n<p><span style=\"color: #333333; font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u4ee5\u4e0a\u306e\u8aac\u660e\u306f\u6982\u8981\u306b\u306a\u308a\u307e<\/span><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u3059\u3002\u3067\u306f\u3001\u5b9f\u969b\u306b\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u30b5\u30fc\u30d0\u3092\u69cb\u7bc9\u3057\u3001<\/span><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u3069\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3084\u308a\u3068\u308a\u3055\u308c\u3066\u3044\u308b\u304b\u898b\u3066\u3044\u884c\u304d\u307e\u3057\u3087\u3046\u3002<\/span><\/p>\n<p><span style=\"font-size: 10.0pt; line-height: 13.0pt; background-color: transparent;\">\u4eca\u56de\u306f\u3001<a href=\"https:\/\/nghttp2.org\/\">nghttp2<\/a>\u306epython\u30d0\u30a4\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3001\u7c21\u5358\u306a\u30b5\u30fc\u30d0\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305a\u3001\u74b0\u5883\u3092\u69cb\u7bc9\u3057\u307e\u3059\u3002\u4eca\u56de\u5229\u7528\u3057\u305f\u74b0\u5883\u306f\u00a0Ubuntu 14.04\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"line number2 index1 alt1\">\n<pre class=\"lang:sh decode:true\">#\u30d1\u30c3\u30b1\u30fc\u30b8\u5165\u308c\u308b\nsudo apt-get update\nsudo apt-get install git vim tcpdump\nsudo apt-get install make binutils autoconf automake autotools-dev libtool pkg-config zlib1g-dev \\\n                     libcunit1-dev libssl-dev libxml2-dev libevent-dev libjansson-dev libjemalloc-dev \\\n                     cython python3.4-dev\n \n#\u30d3\u30eb\u30c9\u3059\u308b\ngit clone https:\/\/github.com\/tatsuhiro-t\/nghttp2.git\ncd .\/nghttp2\n \nautoreconf -i\nautomake\nautoconf\n.\/configure PYTHON=\/usr\/bin\/python3.4\nmake\n \nsudo make install\n\/sbin\/ldconfig\n \n#python\u5074\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\ncd .\/python\nsudo python3.4 .\/setup.py install\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u74b0\u5883\u69cb\u7bc9\u304c\u51fa\u6765\u305f\u3068\u3053\u308d\u3067\u3001\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u4f53\u611f\u3059\u308b\u305f\u3081\u306b\u7c21\u5358\u306a\u30b5\u30fc\u30d0\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u305f\u3089\u3001index.html\u3092\u8fd4\u3057\u3001\u3055\u3089\u306bhoge.js\u3092\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u7c21\u5358\u306a\u30b5\u30fc\u30d0\u3067\u3059\u3002<\/p>\n<p>\u6bd4\u8f03\u306e\u305f\u3081\u306b\u3001\u30d7\u30c3\u30b7\u30e5\u3092\u7121\u52b9\u5316\u3059\u308b(do_push = False)\u306b\u3082\u51fa\u6765\u308b\u4ed5\u7d44\u307f\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"code panel\">\n<div class=\"codeContent panelContent\">\n<div id=\"highlighter_619794\" class=\"syntaxhighlighter nogutter  java\">\n<pre class=\"\">import nghttp2\n \nclass Handler(nghttp2.BaseRequestHandler):\n    self.do_push = True\n    def on_headers(self):        \n        js_file = open('.\/hoge.js', encoding='utf-8')\n        js = js_file.read()\n\u00a0       #hoge.js\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3057hoge.js\u3092\u8fd4\u3059(do_push = False\u306e\u6642\u7528)\n        if self.path.decode(\"utf-8\") == \"\/hoge.js\":\n            self.send_response(status=200,\n                                headers = [('content-length', str(len(self.js)))],\n                                body=js)\n        #index.html\u3078\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3057index.html\u3092\u30ec\u30b9\u30dd\u30f3\u30b9\u3057\u3001hoge.js\u3092push\u3059\u308b\n        else:\n            if self.do_push:\n                self.push(path='\/hoge.js',\n                          status=200,\n                          headers = [('content-length', str(len(self.js)))],\n                          body=js)\n            html_file = open('.\/index.html', encoding='utf-8')\n            html = html_file.read()\n            self.send_response(status=200,\n                                headers = [('content-length', str(len(html)))],\n                                body=html)\n#\u305f\u3060\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u969b\u306fssl\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059 \nserver = nghttp2.HTTP2Server(('10.0.2.15', 80), Handler, ssl=None)\nserver.serve_forever()\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u3061\u306a\u307f\u306b\u4f7f\u7528\u3059\u308bindex.html\u306e\u4e2d\u8eab\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306bhoge.js\u3092\u8aad\u307f\u8fbc\u3080\u3060\u3051\u306e\u3082\u306e\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"code panel\">\n<div class=\"codeContent panelContent\">\n<div id=\"highlighter_619794\" class=\"syntaxhighlighter nogutter  java\">\n<pre class=\"lang:default decode:true\" title=\"index.html\">&lt;!DOCTYPE html&gt;\nLet's enjoy http\/2!\n&lt;script src=\".\/hoge.js\"&gt;&lt;\/script&gt;\n&lt;\/html&gt;<\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u9045\u5ef6\u306e\u3042\u308b\u74b0\u5883\u4e0b\u3067Google Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u3067\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u3059\u308b\u5834\u5408\u3068\u3057\u306a\u3044\u5834\u5408\u306e\u69d8\u5b50\u3092\u898b\u3066\u884c\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u30ed\u30fc\u30c9\u6642\u9593\u306e\u7e26\u8ef8\u5408\u3063\u3066\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n<\/div>\n<\/div>\n<\/div>\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<th class=\"confluenceTh\">do_push = True<\/th>\n<td class=\"confluenceTd\"><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12865\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push-600x186.png\" alt=\"simpre push\" width=\"600\" height=\"186\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push-600x186.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push-276x86.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push-830x258.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_push.png 905w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><\/td>\n<\/tr>\n<tr>\n<th class=\"confluenceTh\"><span style=\"color: #003366;\">do_push = False<\/span><\/th>\n<td class=\"confluenceTd\"><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12866\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push-600x196.png\" alt=\"simpre no push\" width=\"600\" height=\"196\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push-600x196.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push-276x90.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push-830x271.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/simpre_no_push.png 925w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u30d7\u30c3\u30b7\u30e5\u3042\u308a\uff1a\u6700\u521d\u306eindex.html\u3068\u3068\u3082\u306bhoge.js\u3082\u53d7\u3051\u53d6\u3063\u3066\u304a\u308a\u3001\u5b9f\u969b\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u884c\u308f\u308c\u308b\u3068\u304d\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u304b\u3089\u8aad\u307f\u8fbc\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u4e00\u77ac\u3067hoge.js\u3092\u8aad\u307f\u8fbc\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30d7\u30c3\u30b7\u30e5\u306a\u3057\uff1aindex.html\u3092\u53d7\u3051\u53d6\u3063\u3066\u304b\u3089\u6539\u3081\u3066hoge.js\u3092\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u3044\u308b\u305f\u3081\u9045\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u884c\u3046\u3053\u3068\u3067\u30e9\u30a6\u30f3\u30c9\u30c8\u30ea\u30c3\u30d7\u56de\u6570\u304c\u6e1b\u308a\u3001\u5f85\u3061\u6642\u9593\u304c\u77ed\u304f\u306a\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000; font-size: 1.4em; font-weight: bold; line-height: normal;\">\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u4e2d\u8eab\u3092\u8997\u304f<\/span><\/p>\n<p>\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u51fa\u6765\u305f\u306e\u3067\u3001\u5b9f\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3084\u308a\u3068\u308a\u3055\u308c\u3066\u3044\u308b\u304b\u6c17\u306b\u306a\u308b\u65b9\u3082\u5c45\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u3088\u3046\u306a\u4eba\u306e\u305f\u3081\u306b\u3001\u3069\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u3067\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u304c\u5b9f\u73fe\u3055\u308c\u3066\u3044\u308b\u304b\u5c11\u3005\u6df1\u5800\u308a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>HTTP\/2\u306e\u30d5\u30ec\u30fc\u30e0\u30ec\u30d9\u30eb\u306e\u8a71\u3057\u306b\u306a\u308a\u307e\u3059\u306e\u3067\u3001\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u5192\u982d\u3067\u3082\u89e6\u308c\u305f\u3068\u304a\u308a\u3001HTTP\/2\u3067\u306fHTTP\/1\u306e\u30bb\u30de\u30f3\u30c6\u30a3\u30af\u30b9\u3092\u7dad\u6301\u3057\u3066\u304a\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u9001\u4fe1\u65b9\u6cd5\u306f\u30d0\u30a4\u30ca\u30ea\u5f62\u5f0f\u306e\u30d5\u30ec\u30fc\u30e0\u3067\u9001\u53d7\u4fe1\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5404\u30d5\u30ec\u30fc\u30e0\u306f\u30b9\u30c8\u30ea\u30fc\u30e0\u3068\u3044\u3046\u5358\u4f4d\u3067\u7ba1\u7406\u3055\u308c\u3066\u304a\u308a\u3001HTTP\/1\u3067\u3044\u3046\u4e00\u5bfe\u306eHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u30fbHTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u4e00\u3064\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u4e0a\u3067\u884c\u308f\u308c\u308b\u30a4\u30e1\u30fc\u30b8\u3067\u3059\u3002HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u3059\u308b\u305f\u3073\u306b\u65b0\u3057\u3044\u30b9\u30c8\u30ea\u30fc\u30e0\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c8\u30ea\u30fc\u30e0\u4e0a\u3067\u9001\u53d7\u4fe1\u3055\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u306b\u306f\u5e7e\u3064\u304b\u7a2e\u985e\u304c\u3042\u308a\u3001\u305d\u306e\u3046\u3061\u4e00\u90e8\u3092\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059<\/p>\n<ul style=\"list-style-type: square;\">\n<li>HEADERS\u30d5\u30ec\u30fc\u30e0 : HTTP\u30d8\u30c3\u30c0\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u3002\u5b9f\u969b\u306f\u30d8\u30c3\u30c0\u5727\u7e2e\u3055\u308c\u305f\u5f62\u5f0f\u3067\u8868\u73fe\u3055\u308c\u308b\u3002<\/li>\n<li>DATA\u30d5\u30ec\u30fc\u30e0 : HTTP\u30dc\u30c7\u30a3\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u308b\u30d5\u30ec\u30fc\u30e0\u3002<\/li>\n<li>SETTINGS\u30d5\u30ec\u30fc\u30e0 : \u901a\u4fe1\u3059\u308b\u4e0a\u3067\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u901a\u77e5\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u3002<\/li>\n<li>PUSH_PROMISE : \u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u3059\u308b\u305f\u3081\u306b\u60f3\u5b9a\u30ea\u30af\u30a8\u30b9\u30c8\u30d8\u30c3\u30c0\u3068\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u305f\u3081\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4e88\u7d04\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u3092\u8e0f\u307e\u3048\u3066\u3001\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3092\u884c\u3046\u969b\u306b\u3069\u306e\u3088\u3046\u306a\u30d5\u30ec\u30fc\u30e0\u304c\u9001\u53d7\u4fe1\u3055\u308c\u3066\u3044\u308b\u306e\u304b\u3092\u8aac\u660e\u3057\u3066\u3044\u304d\u307e\u3059\u3002\uff08HTTP\/2\u3092\u5229\u7528\u3059\u308b\u4e0a\u3067\u306e\u63a5\u7d9a\u3067\u624b\u9806\u306f\u7701\u7565\u3057\u3066\u3044\u307e\u3059\uff09<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/flow.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12867\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/flow-538x400.png\" alt=\"flow\" width=\"538\" height=\"400\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/flow-538x400.png 538w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/flow-269x200.png 269w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/flow.png 820w\" sizes=\"auto, (max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<ol>\n<li>\u6700\u521d\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u306f\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3068\u306f\u95a2\u4fc2\u306a\u304f\u3001\u901a\u5e38\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\nHEADERS\u30d5\u30ec\u30fc\u30e0\u306fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u30d8\u30c3\u30c0\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30d5\u30ec\u30fc\u30e0\u306b\u306a\u308a\u307e\u3059\u3002HTTP\/2\u3067\u306fHTTP\/1\u3067\u4f7f\u7528\u3057\u3066\u3044\u305f\u30d8\u30c3\u30c0\u304c\u305d\u306e\u307e\u307e\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4e00\u90e8\u300c:\u300d\u3067\u59cb\u307e\u308b\u64ec\u4f3c\u30d8\u30c3\u30c0\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u69d8\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u9001\u4fe1\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u305f\u3060\u3057\u3001\u5b9f\u969b\u306f\u30d8\u30c3\u30c0\u5727\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\uff09<\/p>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre class=\"\">:authority localhost\n:method GET\n:path \/index.html\n:scheame https\nuser-agent test-client<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\u30b5\u30fc\u30d0\u304b\u3089\u3001\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u306e\u305f\u3081\u306bPUSH_PROMISE\u30d5\u30ec\u30fc\u30e0\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d5\u30ec\u30fc\u30e0\u3067\u306f\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u9001\u4fe1\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3059\u308b\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u4e88\u7d04\u53ca\u3073\u3001\u60f3\u5b9a\u3059\u308bHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u4f8b\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u7528\u306bstream id = 2\u3092\u4e88\u7d04\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u307e\u305f\u3001\u5b9f\u969b\u306f\u884c\u308f\u308c\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u3069\u306e\u3088\u3046\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3059\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u306a\u306e\u304b\u660e\u793a\u3059\u308b\u305f\u3081\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30d8\u30c3\u30c0\u60c5\u5831\u304c\u4ed8\u52a0\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u5b9f\u969b\u306f\u30d8\u30c3\u30c0\u5727\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\uff09 \u3002<br \/>\n\u3053\u306e\u30d8\u30c3\u30c0\u60c5\u5831\u3092\u898b\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u884c\u3044\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u884c\u3046\u969b\u306f\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre class=\"\">:authority localhost\n:method GET\n:scheme https\n:path hoge.js<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>(1)\u3067\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u3059\u308b\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002HTTP\/1.1\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u306fHEADERS\u30d5\u30ec\u30fc\u30e0\u3067\u8868\u73fe\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u69d8\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u9001\u4fe1\u3055\u308c\u3066\u3044\u307e\u3059\uff08\u305f\u3060\u3057\u3001\u5b9f\u969b\u306f\u30d8\u30c3\u30c0\u5727\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\uff09<\/p>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre>:status 200\nserver simple-push-server<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>DATA\u30d5\u30ec\u30fc\u30e0\u306f\u3001HTTP\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u76f8\u5f53\u306e\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059<\/p>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre class=\"lang:default decode:true \" title=\"index.html\">&lt;!DOCTYPE html&gt;\nLet's enjoy http\/2!\n&lt;script src=\".\/hoge.js\"&gt;&lt;\/script&gt;\n&lt;\/html&gt;&gt;<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>(2)\u3067\u78ba\u4fdd\u3055\u308c\u305f\u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3067\u9001\u308b\u30c7\u30fc\u30bf\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30d8\u30c3\u30c0\u30fb\u30ec\u30b9\u30dd\u30f3\u30b9\u30dc\u30c7\u30a3\u60c5\u5831\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre>:status 200\nserver simple-push-server<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre class=\"\">\/\/hoge.js\u306e\u4e2d\u8eab\n<em>console<\/em>.<em>log<\/em>(\"hoge\");<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u306e\u3088\u3046\u306b\u30b5\u30fc\u30d0\u304b\u3089\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u307e\u305f\u3001\u4eca\u56de\u306f\u8aac\u660e\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u30d5\u30ec\u30fc\u30e0\u306b\u306f\u5236\u5fa1\u7528\u306e\u30d5\u30e9\u30b0\u3084\u3001\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u30fb\u30d1\u30c7\u30a3\u30f3\u30b0\u306a\u3069\u3082\u8a2d\u5b9a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3055\u3089\u306b\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3001<a href=\"https:\/\/www.wireshark.org\/\">Wireshark<\/a>\u3067\u306f\u65e2\u306bHTTP\/2\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059(\u958b\u767a\u7248\u3060\u3068draft14\u5bfe\u5fdc)\u306e\u3067\u3001\u30d1\u30b1\u30c3\u30c8\u3092\u30ad\u30e3\u30d7\u30c1\u30e3\u3059\u308b\u3053\u3068\u3067\u30d5\u30ec\u30fc\u30e0\u306e\u30d5\u30e9\u30b0\u3084\u30d8\u30c3\u30c0\u304c\u3069\u306e\u3088\u3046\u306b\u5727\u7e2e\u3055\u308c\u3066\u3044\u308b\u304b\u306a\u3069\u304c\u78ba\u8a8d\u3067\u304d\u3088\u308a\u7406\u89e3\u304c\u6df1\u307e\u308a\u307e\u3059\u306e\u3067\u3001\u662f\u975e\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12868\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark-600x384.png\" alt=\"go-deep-with-wireshark\" width=\"600\" height=\"384\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark-600x384.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark-276x176.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark-830x531.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/go-deep-with-wireshark.png 1017w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000; font-size: 1.4em; font-weight: bold; line-height: normal;\">\u5b9f\u969b\u306e\u30b5\u30a4\u30c8\u3067\u8a66\u3059<\/span><\/p>\n<p>\u4e0a\u8a18\u3067\u7c21\u5358\u306b\u8a66\u3057\u305fpython\u306e\u30b3\u30fc\u30c9\u3092\u591a\u5c11\u6539\u5909\u3057\u3001Proxy\u6a5f\u80fd\u3068\u30d7\u30c3\u30b7\u30e5\u306e\u30eb\u30fc\u30eb\u8a2d\u5b9a\u3092\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3044\u305f\u3002<\/p>\n<p>\u3053\u306ePush+Proxy\u30b5\u30fc\u30d0\u3092\u4ecb\u3057\u3066\u3001\u666e\u6bb5\u4f7f\u7528\u3057\u3066\u3044\u308b\u958b\u767a\u74b0\u5883\u306b\u30d7\u30ed\u30ad\u30b7\u3059\u308b\u69cb\u6210\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12872\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy-600x150.png\" alt=\"push_proxy\" width=\"600\" height=\"150\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy-600x150.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy-276x69.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy-830x208.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/push_proxy.png 912w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>\u30d7\u30c3\u30b7\u30e5\u306e\u30eb\u30fc\u30eb\u306f\u4eca\u56de\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3055\u308c\u305fhost\u540d + path\u304b\u3089\u3001\u30d7\u30c3\u30b7\u30e5\u3059\u3079\u304d\u30d5\u30a1\u30a4\u30eb\u3092\u5bfe\u5fdc\u4ed8\u3051\u305fyaml\u3092\u8aad\u307f\u8fbc\u3080\u7c21\u5358\u306a\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306ayaml\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u300chttps:\/\/localhost\/\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3057\u305f\u5834\u5408\u306b\u300c\/css\/portal.css\u300d,\u300c\/js\/jquery.min.js\u300d\u3092push\u3059\u308b\u4e8b\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<table class=\"wysiwyg-macro\" style=\"background-image: url('https:\/\/confluence.gree-office.net\/plugins\/servlet\/confluence\/placeholder\/macro-heading?definition=e2NvZGV9&amp;locale=ja_JP&amp;version=2'); background-repeat: no-repeat;\" data-macro-name=\"code\" data-macro-body-type=\"PLAIN_TEXT\">\n<tbody>\n<tr>\n<td class=\"wysiwyg-macro-body\">\n<pre>localhost:\n  \/:\n  - \/css\/portal.css\n  - \/js\/jquery.min.js\n  \/login.php\n  - \/hoge.css\n  - \/hoge.js<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>PC\u7248GREE\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u3067\u3001css,js\u30d5\u30a1\u30a4\u30eb\u3092\u30d7\u30c3\u30b7\u30e5\u3055\u308c\u308b\u69d8\u5b50\u3092Chrome\u306e\u30c7\u30d9\u30ed\u30c3\u30d1\u30fc\u30c4\u30fc\u30eb\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12932\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page-586x400.png\" alt=\"http2-gree-top-page\" width=\"586\" height=\"400\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page-586x400.png 586w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page-276x188.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page-830x566.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/http2-gree-top-page.png 970w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/p>\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<th class=\"confluenceTh\">push\u3042\u308a<\/th>\n<td class=\"confluenceTd\"><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12874\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push-600x202.png\" alt=\"proxy_do_push\" width=\"600\" height=\"202\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push-600x202.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push-276x93.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push-830x280.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_do_push.png 943w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<th class=\"confluenceTh\">push\u306a\u3057<\/th>\n<td class=\"confluenceTd\"><a href=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-12873\" src=\"http:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push-600x193.png\" alt=\"proxy_no_push\" width=\"600\" height=\"193\" srcset=\"https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push-600x193.png 600w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push-276x88.png 276w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push-830x267.png 830w, https:\/\/labs.gree.jp\/blog\/wp-content\/uploads\/2014\/12\/proxy_no_push.png 934w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6700\u521d\u306e\u5b9f\u9a13\u3068\u540c\u69d8\u3001css\u3068js\u304c\u4e00\u77ac\u3067\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>index.html\u3092\u4e2d\u7d99\u3057\u306a\u304c\u3089\u3001push\u306e\u6e96\u5099\u3092\u958b\u59cb\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u9045\u304f\u306a\u308b\u3053\u3068\u3082\u306a\u304f\u30e9\u30a6\u30f3\u30c9\u30c8\u30ea\u30c3\u30d7\u56de\u6570\u3092\u6e1b\u3089\u3059\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<div class=\"wiki-content\">\n<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u304a\u308f\u308a\u306b\">\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4eca\u56de\u306f\u30b5\u30fc\u30d0\u30d7\u30c3\u30b7\u30e5\u3067\u5c11\u3057\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u7c21\u5358\u306a\u4f8b\u3067\u306f\u3042\u308a\u307e\u3057\u305f\u304c\u4ed6\u306b\u3082\u3001html\u3092\u52d5\u7684\u306b\u89e3\u91c8\u3057\u30d7\u30c3\u30b7\u30e5\u3059\u308b\u3001\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u3092\u52a0\u5473\u3059\u308b\u3001\u306f\u305f\u307e\u305fHTTP\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3068\u5408\u308f\u305b\u308b\u3068\u3044\u3063\u305f\u3053\u3068\u3082\u51fa\u6765\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3060\u3001\u3084\u306f\u308a\u5b9f\u969b\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u5c0e\u5165\u3059\u308b\u306e\u306b\u306f\u8003\u3048\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3053\u3068\u3082\u6ca2\u5c71\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5074\u3067\u306eHTTPS\u5bfe\u5fdc<\/li>\n<li>\u8ca0\u8377\u5206\u6563\u88c5\u7f6e\u30fb\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3068\u3044\u3063\u305f\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u4e2d\u9593\u88c5\u7f6e\u306e\u554f\u984c<\/li>\n<li>\uff11\u3064\u306eTCP\u30b3\u30cd\u30af\u30b7\u30e7\u30f3\u306e\u751f\u5b58\u6642\u9593\u304c\u9577\u304f\u306a\u308b\u3053\u3068\u306b\u3088\u308b\u3001gracefull restart\u6642\u3084\u3001DNS\u30ec\u30b3\u30fc\u30c9\u3092\u7528\u3044\u305f\u30b5\u30fc\u30d0\u5207\u308a\u66ff\u3048\u3078\u306e\u5f71\u97ff<\/li>\n<li>\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u30fb\u76e3\u8996\u9805\u76ee\u306e\u691c\u8a0e\u30fb\u8ffd\u52a0<\/li>\n<li>\u30ed\u30b0\u306e\u7c92\u5ea6\u3068\u53ef\u8aad\u6027\u306e\u554f\u984c<\/li>\n<li>\u4ed5\u69d8\u3067\u6307\u5b9a\u3055\u308c\u305f\u6697\u53f7\u30b9\u30a4\u30fc\u30c8\u306e\u30b5\u30dd\u30fc\u30c8\u3001ALPN\u306e\u30b5\u30dd\u30fc\u30c8<\/li>\n<\/ul>\n<p>\u8208\u5473\u3092\u6301\u3063\u3066\u3044\u308b\u65b9\u304c\u3044\u308c\u3070\u662f\u975e\u304a\u8a71\u3057\u305f\u3044\u3067\u3059\u3057\u3001\u8a66\u3057\u3066\u307f\u305f\u3068\u3044\u3046\u8a71\u304c\u3042\u308c\u3070\u662f\u975e\u60c5\u5831\u4ea4\u63db\u3055\u305b\u3066\u3044\u9802\u304d\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u3067\u3082\u305d\u3046\u3044\u3063\u305f\u8a71\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3053\u308c\u304b\u3089\u3082\u9811\u5f35\u3063\u3066\u3044\u304d\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<div><\/div>\n<div>\n<p>\u6700\u5f8c\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u65e5\u672c\u3067\u306f\u6709\u5fd7\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u3082\u306e\u3059\u3054\u304f\u6d3b\u767a\u3067\u3042\u308a\u3001IETF\u306e\u30df\u30fc\u30c6\u30a3\u30f3\u30b0\u3067\u3082 \u300c<a href=\"http:\/\/www.ietf.org\/proceedings\/91\/slides\/slides-91-httpbis-1.pdf\">HTTP\/2 Local Activities\u00a0Report in Japan<\/a>\u300d\u3068\u3057\u3066\u5831\u544a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30d9\u30f3\u30c8\u3082\u884c\u3063\u3066\u304a\u308a\u3001\u5148\u65e5\u884c\u308f\u308c\u305f<a href=\"http:\/\/http2study.connpass.com\/event\/9209\/\">HTTP2Conference<\/a>\u3082\u5927\u76db\u6cc1\u3067\u3057\u305f\u3002\u5b9a\u671f\u7684\u306b<a href=\"http:\/\/http2study.connpass.com\/\">\u52c9\u5f37\u4f1a<\/a>\u3082\u884c\u308f\u308c\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u8208\u5473\u3042\u308b\u65b9\u306f\u53c2\u52a0\u3057\u3066\u307f\u308b\u306e\u3082\u3044\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<\/div>\n<div id=\"likes-and-labels-container\"><\/div>\n<div>\u660e\u65e5\u306f\u3053\u306e\u30d6\u30ed\u30b0\u306b\u3082\u4f55\u5ea6\u304b\u767b\u5834\u3055\u308c\u3066\u3044\u308b Wright Flyer Studios\u306e\u4e45\u5bcc\u6728\u3055\u3093\u306b\u306a\u308a\u307e\u3059\u3002\u304a\u697d\u3057\u307f\u306b\uff01\uff01<\/div>\n<div><\/div>\n<div>\n<h2 id=\"id-\u3052\u3093\u3053\u30fc-\u304a\u308f\u308a\u306b\">\u95a2\u9023\u30ea\u30f3\u30af<\/h2>\n<p>HTTP\/2 \u4ed5\u69d8 : <a href=\"http:\/\/http2.github.io\/\">http:\/\/http2.github.io\/<\/a><br \/>\nnghttp2 :\u00a0<a href=\"https:\/\/nghttp2.org\/\">https:\/\/nghttp2.org\/<br \/>\n<\/a>\u65e5\u672c\u30b3\u30df\u30e5\u30cb\u30c6\u30a3:<a href=\"http:\/\/http2.info\">http:\/\/http2.info<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3053\u3093\u306b\u3061\u306f\u3001\u30a4\u30f3\u30d5\u30e9\u30b9\u30c8\u30e9\u30af\u30c1\u30e3\u672c\u90e8\u306e\u5f8c\u85e4\u3067\u3059\u3002 \u3053\u306e\u30a8\u30f3\u30c8\u30ea\u306f GREE Advent Calendar 2014 15\u65e5\u76ee\u306e\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 &nbsp; \u524d\u56de\u306fWeb\u30b5\u30a4\u30c8\u3092HTTP\/2\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u30ea [&hellip;]<\/p>\n","protected":false},"author":109,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[54,87,26],"class_list":["post-11987","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-advent-calendar","tag-http2","tag-nw"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/11987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/users\/109"}],"replies":[{"embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/comments?post=11987"}],"version-history":[{"count":3,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/11987\/revisions"}],"predecessor-version":[{"id":13046,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/posts\/11987\/revisions\/13046"}],"wp:attachment":[{"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/media?parent=11987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/categories?post=11987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labs.gree.jp\/blog\/wp-json\/wp\/v2\/tags?post=11987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}