{"id":41987,"date":"2024-12-01T09:05:23","date_gmt":"2024-12-01T01:05:23","guid":{"rendered":"https:\/\/fwq.ai\/blog\/41987\/"},"modified":"2024-12-01T09:05:23","modified_gmt":"2024-12-01T01:05:23","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88-gin-%e7%9a%84-ctx-stream-%e5%9c%a8%e5%90%af%e7%94%a8%e5%8e%8b%e7%bc%a9%e4%b8%ad%e9%97%b4%e4%bb%b6%e5%90%8e%e6%97%a0%e6%b3%95%e5%ae%9e%e6%97%b6%e8%be%93%e5%87%ba%e7%bb%93","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/41987\/","title":{"rendered":"\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f"},"content":{"rendered":"<p>\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241117\/17318512996739f4230962f.jpg\" class=\"aligncenter\" title=\"\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u63d2\u56fe\" alt=\"\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u63d2\u56fe\" \/>,<br \/>\n<strong>gin \u7684 ctx.stream \u4e3a\u4ec0\u4e48\u5728\u65b9\u6cd5\u6267\u884c\u7ed3\u675f\u540e\u624d\u8f93\u51fa\u7ed3\u679c\uff1f<\/strong>,<br \/>\n<strong>\u95ee\u9898\uff1a<\/strong>,gin \u7684 ctx.stream \u65e0\u6cd5\u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\uff0c\u800c\u662f\u5728\u63a7\u5236\u5668\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u540e\u624d\u4e00\u6b21\u6027\u8f93\u51fa\u7ed3\u679c\u3002\u8fd9\u662f\u4e3a\u4ec0\u4e48\uff1f,<br \/>\n<strong>\u89e3\u7b54\uff1a<\/strong>,\u5f53 gin \u542f\u7528\u4e86\u538b\u7f29\u8f93\u51fa\u4e2d\u95f4\u4ef6\uff08\u4f8b\u5982 brotli.brotli\uff09\u540e\uff0cctx.stream \u5c06\u4e0d\u8d77\u4f5c\u7528\u3002\u8fd9\u662f\u56e0\u4e3a\uff1a,\u6b64\u65f6\uff0c\u53ef\u4ee5\u5728\u8bf7\u6c42\u5934\u4e2d\u660e\u786e\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221; \u4ee5\u907f\u514d\u538b\u7f29\uff0c\u4ece\u800c\u8ba9 ctx.stream \u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\u3002,\u53c2\u8003 gin \u6e90\u4ee3\u7801\u4e2d shouldcompress \u65b9\u6cd5\u7684\u5b9e\u73b0\uff1a,\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8golang\u5b66\u4e60\u7f51\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01,<br \/>\n<strong>connection\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;connection: upgrade&#8221;\uff0c\u5219 gin \u4f1a\u8ba4\u4e3a\u8fd9\u662f websocket \u8bf7\u6c42\uff0c\u4ece\u800c\u8df3\u8fc7\u538b\u7f29\u3002,<br \/>\n<strong>accept-encoding\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u672a\u6307\u5b9a &#8220;accept-encoding: br&#8221;\uff0c\u5219 gin \u4e0d\u4f1a\u5bf9\u54cd\u5e94\u5185\u5bb9\u8fdb\u884c\u538b\u7f29\u3002,<br \/>\n<strong>content-type\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221;\uff0c\u5219 gin \u5c06\u6309 sse \u534f\u8bae\u5904\u7406\u54cd\u5e94\uff0c\u540c\u6837\u8df3\u8fc7\u538b\u7f29\u3002,gin \u7684 ctx.stream \u4e3a\u4ec0\u4e48\u5728\u65b9\u6cd5\u6267\u884c\u7ed3\u675f\u540e\u624d\u8f93\u51fa\u7ed3\u679c\uff1f,\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01,<br \/>\n<b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f<\/span><\/p>\n<h1>\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f<\/h1>\n<p><span>2024-11-17 21:48:34<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241117\/17318512996739f4230962f.jpg\" class=\"aligncenter\" title=\"\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u63d2\u56fe\" alt=\"\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>gin \u7684 ctx.stream \u4e3a\u4ec0\u4e48\u5728\u65b9\u6cd5\u6267\u884c\u7ed3\u675f\u540e\u624d\u8f93\u51fa\u7ed3\u679c\uff1f<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong><\/p>\n<p>gin \u7684 ctx.stream \u65e0\u6cd5\u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\uff0c\u800c\u662f\u5728\u63a7\u5236\u5668\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u540e\u624d\u4e00\u6b21\u6027\u8f93\u51fa\u7ed3\u679c\u3002\u8fd9\u662f\u4e3a\u4ec0\u4e48\uff1f<\/p>\n<p><strong>\u89e3\u7b54\uff1a<\/strong><\/p>\n<p>\u5f53 gin \u542f\u7528\u4e86\u538b\u7f29\u8f93\u51fa\u4e2d\u95f4\u4ef6\uff08\u4f8b\u5982 brotli.brotli\uff09\u540e\uff0cctx.stream \u5c06\u4e0d\u8d77\u4f5c\u7528\u3002\u8fd9\u662f\u56e0\u4e3a\uff1a<\/p>\n<ul>\n<li><strong>accept-encoding\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u672a\u6307\u5b9a &#8220;accept-encoding: br&#8221;\uff0c\u5219 gin \u4e0d\u4f1a\u5bf9\u54cd\u5e94\u5185\u5bb9\u8fdb\u884c\u538b\u7f29\u3002<\/li>\n<li><strong>connection\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;connection: upgrade&#8221;\uff0c\u5219 gin \u4f1a\u8ba4\u4e3a\u8fd9\u662f websocket \u8bf7\u6c42\uff0c\u4ece\u800c\u8df3\u8fc7\u538b\u7f29\u3002<\/li>\n<li><strong>content-type\uff1a<\/strong>\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221;\uff0c\u5219 gin \u5c06\u6309 sse \u534f\u8bae\u5904\u7406\u54cd\u5e94\uff0c\u540c\u6837\u8df3\u8fc7\u538b\u7f29\u3002<\/li>\n<\/ul>\n<p>\u6b64\u65f6\uff0c\u53ef\u4ee5\u5728\u8bf7\u6c42\u5934\u4e2d\u660e\u786e\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221; \u4ee5\u907f\u514d\u538b\u7f29\uff0c\u4ece\u800c\u8ba9 ctx.stream \u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\u3002<\/p>\n<p>\u53c2\u8003 gin \u6e90\u4ee3\u7801\u4e2d shouldcompress \u65b9\u6cd5\u7684\u5b9e\u73b0\uff1a<\/p>\n<pre>func shouldCompress(req *http.Request, options *Options) bool {\n    if !strings.Contains(req.Header.Get(\"Accept-Encoding\"), \"br\") ||\n        strings.Contains(req.Header.Get(\"Connection\"), \"Upgrade\") ||\n        strings.Contains(req.Header.Get(\"Content-Type\"), \"text\/event-stream\") {\n\n        return false\n    }\n\n    extension := filepath.Ext(req.URL.Path)\n    if len(extension) &lt; 4 { \/\/ fast path\n        return true\n    }\n\n    if skip := containsString(options.SkipExtensions, extension); skip {\n        return false\n    } else {\n        return true\n    }\n}<\/pre>\n<p>\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8golang\u5b66\u4e60\u7f51\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5982\u4f55\u4f7f\u7528 JavaScript \u901a\u8fc7 Ajax \u8bfb\u53d6 XML \u5e76\u663e\u793a\u524d\u4e24\u4e2a\u5b50\u8282\u70b9\u6570\u636e\uff1f\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   Kafka \u4f9d\u8d56\u9879 org.apache.kafka \u548c org.apache.kafka-clients \u7684\u533a\u522b\u662f\u4ec0\u4e48\uff1f\u6d88\u8d39\u8005\u5e94\u8be5\u4f7f\u7528\u54ea\u4e2a\uff1f\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01, , gin \u7684 ctx.stream \u4e3a\u4ec0\u4e48\u5728\u65b9\u6cd5\u6267\u884c\u7ed3\u675f\u540e\u624d\u8f93\u51fa\u7ed3\u679c\uff1f, \u95ee\u9898\uff1a,gin \u7684 ctx.stream \u65e0\u6cd5\u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\uff0c\u800c\u662f\u5728\u63a7\u5236\u5668\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u540e\u624d\u4e00\u6b21\u6027\u8f93\u51fa\u7ed3\u679c\u3002\u8fd9\u662f\u4e3a\u4ec0\u4e48\uff1f, \u89e3\u7b54\uff1a,\u5f53 gin \u542f\u7528\u4e86\u538b\u7f29\u8f93\u51fa\u4e2d\u95f4\u4ef6\uff08\u4f8b\u5982 brotli.brotli\uff09\u540e\uff0cctx.stream \u5c06\u4e0d\u8d77\u4f5c\u7528\u3002\u8fd9\u662f\u56e0\u4e3a\uff1a,\u6b64\u65f6\uff0c\u53ef\u4ee5\u5728\u8bf7\u6c42\u5934\u4e2d\u660e\u786e\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221; \u4ee5\u907f\u514d\u538b\u7f29\uff0c\u4ece\u800c\u8ba9 ctx.stream \u6309\u9884\u671f\u5730\u5b9e\u65f6\u8f93\u51fa\u3002,\u53c2\u8003 gin \u6e90\u4ee3\u7801\u4e2d shouldcompress \u65b9\u6cd5\u7684\u5b9e\u73b0\uff1a,\u5230\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u5c31\u8bb2\u5b8c\u4e86\u300a\u4e3a\u4ec0\u4e48 Gin \u7684 ctx.Stream \u5728\u542f\u7528\u538b\u7f29\u4e2d\u95f4\u4ef6\u540e\u65e0\u6cd5\u5b9e\u65f6\u8f93\u51fa\u7ed3\u679c\uff1f\u300b\u7684\u5185\u5bb9\u4e86\u3002\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u57fa\u7840\u77e5\u8bc6\u7684\u5b66\u4e60\u548c\u5de9\u56fa\uff0c\u662f\u4e3a\u4e86\u66f4\u597d\u7684\u5c06\u5176\u8fd0\u7528\u5230\u9879\u76ee\u4e2d\uff0c\u6b22\u8fce\u5173\u6ce8golang\u5b66\u4e60\u7f51\u516c\u4f17\u53f7\uff0c\u5e26\u4f60\u4e86\u89e3\u66f4\u591a\u5173\u4e8e\u7684\u77e5\u8bc6\u70b9\uff01, connection\uff1a\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;connection: upgrade&#8221;\uff0c\u5219 gin \u4f1a\u8ba4\u4e3a\u8fd9\u662f websocket \u8bf7\u6c42\uff0c\u4ece\u800c\u8df3\u8fc7\u538b\u7f29\u3002, accept-encoding\uff1a\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u672a\u6307\u5b9a &#8220;accept-encoding: br&#8221;\uff0c\u5219 gin \u4e0d\u4f1a\u5bf9\u54cd\u5e94\u5185\u5bb9\u8fdb\u884c\u538b\u7f29\u3002, content-type\uff1a\u5982\u679c\u8bf7\u6c42\u5934\u4e2d\u6307\u5b9a &#8220;content-type: text\/event-stream&#8221;\uff0c\u5219 gin \u5c06\u6309 sse \u534f\u8bae\u5904\u7406\u54cd\u5e94\uff0c\u540c\u6837\u8df3\u8fc7\u538b\u7f29\u3002,gin \u7684 ctx.stream \u4e3a\u4ec0\u4e48\u5728\u65b9\u6cd5\u6267\u884c\u7ed3\u675f\u540e\u624d\u8f93\u51fa\u7ed3\u679c\uff1f,\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662fGolang\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u4e3a\u4ec0\u4e48 Gin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-41987","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/41987","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=41987"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/41987\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=41987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=41987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=41987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}