{"id":23557,"date":"2024-11-21T08:19:08","date_gmt":"2024-11-21T00:19:08","guid":{"rendered":"https:\/\/fwq.ai\/blog\/23557\/"},"modified":"2024-11-21T08:19:08","modified_gmt":"2024-11-21T00:19:08","slug":"swoole%e5%ae%9e%e8%b7%b5%ef%bc%9a%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e9%ab%98%e6%95%88%e7%9a%84%e8%ae%a1%e7%ae%97%e4%bb%bb%e5%8a%a1%e5%b9%b6%e5%8f%91%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/23557\/","title":{"rendered":"Swoole\u5b9e\u8df5\uff1a\u5982\u4f55\u5b9e\u73b0\u9ad8\u6548\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406"},"content":{"rendered":"<p>\u8fd1\u5e74\u6765\uff0c\u968f\u7740\u4e92\u8054\u7f51\u4e1a\u52a1\u7684\u53d1\u5c55\uff0c\u4eba\u4eec\u5bf9\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c\u800c\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u662f\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u91cd\u8981\u624b\u6bb5\u4e4b\u4e00\u3002\u5728\u8fd9\u4e2a\u80cc\u666f\u4e0b\uff0c\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1\u6846\u67b6\uff0c\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b9e\u73b0\u9ad8\u6548\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u4e09\u4e2a\u65b9\u9762\u4ecb\u7ecd\u5982\u4f55\u5229\u7528Swoole\u5b9e\u73b0\u9ad8\u6548\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\uff1a<\/p>\n<ol>\n<li>Swoole\u7684\u591a\u8fdb\u7a0b\u6a21\u578b<\/li>\n<\/ol>\n<p>\u5728Swoole\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u8fdb\u7a0b\u6a21\u578b\u6765\u5b9e\u73b0\u8ba1\u7b97\u4efb\u52a1\u7684\u5e76\u53d1\u5904\u7406\u3002\u591a\u8fdb\u7a0b\u6a21\u578b\u53ef\u4ee5\u5c06\u4e00\u4e2a\u4e3b\u8fdb\u7a0b\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u4e00\u4e2a\u4efb\u52a1\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u541e\u5410\u91cf\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>Swoole\u63d0\u4f9b\u4e86\u4e00\u4e9b\u591a\u8fdb\u7a0b\u6a21\u578b\u7684API\uff0c\u5982fork\u3001exec\u7b49\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5b50\u8fdb\u7a0b\u548c\u6267\u884c\u5b50\u8fdb\u7a0b\u4efb\u52a1\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre>$worker_num = 4; \/\/ \u5b50\u8fdb\u7a0b\u6570\u91cf\n\nfor($i=0; $i&lt;p&gt;\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e864\u4e2a\u5b50\u8fdb\u7a0b\u6765\u5904\u7406\u8ba1\u7b97\u4efb\u52a1\uff0c\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u4e00\u4e2a\u4efb\u52a1\u3002\u7b49\u5f85\u6240\u6709\u5b50\u8fdb\u7a0b\u7ed3\u675f\u540e\uff0c\u4e3b\u8fdb\u7a0b\u5c31\u53ef\u4ee5\u7ed3\u675f\u4e86\u3002&lt;\/p&gt;&lt;ol start=\"2\"&gt;&lt;li&gt;Swoole\u7684\u534f\u7a0b\u6a21\u578b&lt;\/li&gt;&lt;\/ol&gt;&lt;p&gt;\u9664\u4e86\u591a\u8fdb\u7a0b\u6a21\u578b\uff0cSwoole\u8fd8\u63d0\u4f9b\u4e86\u4e00\u79cd\u534f\u7a0b\u6a21\u578b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u8f7b\u91cf\u7ea7\u7684\u5e76\u53d1\u5904\u7406\u3002\u534f\u7a0b\u6a21\u578b\u4e2d\uff0c\u591a\u4e2a\u4efb\u52a1\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u5e76\u53d1\u6267\u884c\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u5f00\u9500\u548c\u5185\u5b58\u5360\u7528\u3002&lt;\/p&gt;&lt;p&gt;Swoole\u7684\u534f\u7a0b\u6a21\u578b\u901a\u8fc7PHP\u534f\u7a0b\u5b9e\u73b0\uff0c\u53ef\u4ee5\u4f7f\u7528\u5173\u952e\u5b57yield\u6765\u5b9e\u73b0\u534f\u7a0b\u5207\u6362\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a&lt;\/p&gt;&lt;pre class=\"brush:php;toolbar:false;\"&gt;function task() {\n    \/\/ do something ...\n    yield; \/\/ \u534f\u7a0b\u5207\u6362\n    \/\/ do something ...\n}\n\n\/\/ \u521b\u5efa\u534f\u7a0b\n$coroutine1 = task();\n$coroutine2 = task();\n\n\/\/ \u6267\u884c\u534f\u7a0b\nwhile(! $coroutine1-&amp;gt;isFinished() &amp;amp;&amp;amp; ! $coroutine2-&amp;gt;isFinished()) {\n    $coroutine1-&amp;gt;resume(); \/\/ \u6267\u884c\u534f\u7a0b1\n    $coroutine2-&amp;gt;resume(); \/\/ \u6267\u884c\u534f\u7a0b2\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e24\u4e2a\u534f\u7a0b\u6765\u5904\u7406\u8ba1\u7b97\u4efb\u52a1\uff0c\u5e76\u901a\u8fc7while\u5faa\u73af\u6765\u8ba9\u5b83\u4eec\u4ea4\u66ff\u6267\u884c\u3002\u6bcf\u4e2a\u534f\u7a0b\u4e2d\uff0c\u5728\u5230\u8fbeyield\u5173\u952e\u5b57\u65f6\uff0c\u4f1a\u81ea\u52a8\u6302\u8d77\u5e76\u5207\u6362\u5230\u4e0b\u4e00\u4e2a\u534f\u7a0b\u4e2d\u6267\u884c\u3002<\/p>\n<ol>\n<li>Swoole\u7684\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b<\/li>\n<\/ol>\n<p>\u9664\u4e86\u591a\u8fdb\u7a0b\u6a21\u578b\u548c\u534f\u7a0b\u6a21\u578b\uff0cSwoole\u8fd8\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585eIO\u64cd\u4f5c\u548c\u4e8b\u4ef6\u9a71\u52a8\u7684\u5e76\u53d1\u5904\u7406\u3002\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\u4e2d\uff0c\u591a\u4e2a\u4efb\u52a1\u53ef\u4ee5\u540c\u65f6\u7b49\u5f85I\/O\u64cd\u4f5c\u7684\u8fd4\u56de\u7ed3\u679c\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7a0b\u5e8f\u7684\u54cd\u5e94\u80fd\u529b\u548c\u541e\u5410\u91cf\u3002<\/p>\n<p>Swoole\u4e3a\u5f02\u6b65\u7f16\u7a0b\u63d0\u4f9b\u4e86\u4e00\u4e9bAPI\uff0c\u5982swoole_event_add\u3001swoole_client\u7b49\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u6ce8\u518c\u4e8b\u4ef6\u5904\u7406\u5668\u548c\u6267\u884c\u5f02\u6b65I\/O\u64cd\u4f5c\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre>\/\/ \u6ce8\u518c\u4e8b\u4ef6\u5904\u7406\u5668\nswoole_event_add(STDIN, function() {\n    \/\/ \u4ece\u6807\u51c6\u8f93\u5165\u8bfb\u53d6\u6570\u636e\n    $data = fgets(STDIN);\n    echo \"Input: \" . $data;\n    \/\/ \u7ee7\u7eed\u7b49\u5f85\u8f93\u5165\n    swoole_event_set(STDIN, null);\n});\n\n\/\/ \u8fdb\u5165\u4e8b\u4ef6\u5faa\u73af\nswoole_event_wait();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6ce8\u518c\u4e86\u4e00\u4e2a\u4e8b\u4ef6\u5904\u7406\u5668\uff0c\u76d1\u542c\u6807\u51c6\u8f93\u5165\uff0c\u5e76\u5728\u8f93\u5165\u4e8b\u4ef6\u53d1\u751f\u65f6\u8bfb\u53d6\u6570\u636e\u5e76\u8f93\u51fa\u3002\u7a0b\u5e8f\u901a\u8fc7swoole_event_wait\u51fd\u6570\u8fdb\u5165\u4e8b\u4ef6\u5faa\u73af\uff0c\u7b49\u5f85\u4e8b\u4ef6\u53d1\u751f\u5e76\u6267\u884c\u76f8\u5e94\u7684\u5904\u7406\u51fd\u6570\u3002<\/p>\n<p>\u603b\u7ed3<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e86\u5982\u4f55\u5229\u7528Swoole\u5b9e\u73b0\u9ad8\u6548\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u3002\u9664\u4e86\u591a\u8fdb\u7a0b\u6a21\u578b\u3001\u534f\u7a0b\u6a21\u578b\u548c\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\uff0cSwoole\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u4e00\u4e9b\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1API\uff0c\u5982swoole_server\u3001swoole_http_server\u7b49\u51fd\u6570\uff0c\u53ef\u4ee5\u5feb\u901f\u6784\u5efa\u9ad8\u6027\u80fd\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u968f\u7740\u4e92\u8054\u7f51\u4e1a\u52a1\u7684\u4e0d\u65ad\u53d1\u5c55\uff0c\u9ad8\u6027\u80fd\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u5df2\u7ecf\u6210\u4e3a\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u5fc5\u8981\u7279\u6027\u4e4b\u4e00\u3002\u800cSwoole\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1\u6846\u67b6\uff0c\u5728\u5b9e\u73b0\u9ad8\u6548\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u65b9\u9762\u5177\u6709\u5f97\u5929\u72ec\u539a\u7684\u4f18\u52bf\uff0c\u53ef\u4ee5\u4e3a\u6211\u4eec\u7684\u4e1a\u52a1\u5e26\u6765\u66f4\u9ad8\u7684\u6027\u80fd\u548c\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fSwoole\u5b9e\u8df5\uff1a\u5982\u4f55\u5b9e\u73b0\u9ad8\u6548\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u5e74\u6765\uff0c\u968f\u7740\u4e92\u8054\u7f51\u4e1a\u52a1\u7684\u53d1\u5c55\uff0c\u4eba\u4eec\u5bf9\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u8981\u6c42\u8d8a\u6765\u8d8a\u9ad8\uff0c\u800c\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u662f\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u6027\u80fd\u7684\u91cd\u8981\u624b\u6bb5\u4e4b\u4e00\u3002\u5728\u8fd9\u4e2a\u80cc\u666f\u4e0b\uff0c\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1\u6846\u67b6\uff0c\u7ed9\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u79cd\u5b9e\u73b0\u9ad8\u6548\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\u7684\u89e3\u51b3\u65b9\u6848\u3002 \u672c\u6587\u5c06\u4ece\u4ee5\u4e0b\u4e09\u4e2a\u65b9\u9762\u4ecb\u7ecd\u5982\u4f55\u5229\u7528Swoole\u5b9e\u73b0\u9ad8\u6548\u7684\u8ba1\u7b97\u4efb\u52a1\u5e76\u53d1\u5904\u7406\uff1a Swoole\u7684\u591a\u8fdb\u7a0b\u6a21\u578b \u5728Swoole\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u8fdb\u7a0b\u6a21\u578b\u6765\u5b9e\u73b0\u8ba1\u7b97\u4efb\u52a1\u7684\u5e76\u53d1\u5904\u7406\u3002\u591a\u8fdb\u7a0b\u6a21\u578b\u53ef\u4ee5\u5c06\u4e00\u4e2a\u4e3b\u8fdb\u7a0b\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u8fdb\u7a0b\uff0c\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u4e00\u4e2a\u4efb\u52a1\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u541e\u5410\u91cf\u548c\u7a33\u5b9a\u6027\u3002 Swoole\u63d0\u4f9b\u4e86\u4e00\u4e9b\u591a\u8fdb\u7a0b\u6a21\u578b\u7684API\uff0c\u5982fork\u3001exec\u7b49\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5b50\u8fdb\u7a0b\u548c\u6267\u884c\u5b50\u8fdb\u7a0b\u4efb\u52a1\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a $worker_num = 4; \/\/ \u5b50\u8fdb\u7a0b\u6570\u91cf for($i=0; $i&lt;p&gt;\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e864\u4e2a\u5b50\u8fdb\u7a0b\u6765\u5904\u7406\u8ba1\u7b97\u4efb\u52a1\uff0c\u6bcf\u4e2a\u5b50\u8fdb\u7a0b\u90fd\u53ef\u4ee5\u72ec\u7acb\u8fd0\u884c\u4e00\u4e2a\u4efb\u52a1\u3002\u7b49\u5f85\u6240\u6709\u5b50\u8fdb\u7a0b\u7ed3\u675f\u540e\uff0c\u4e3b\u8fdb\u7a0b\u5c31\u53ef\u4ee5\u7ed3\u675f\u4e86\u3002&lt;\/p&gt;&lt;ol start=&#8221;2&#8243;&gt;&lt;li&gt;Swoole\u7684\u534f\u7a0b\u6a21\u578b&lt;\/li&gt;&lt;\/ol&gt;&lt;p&gt;\u9664\u4e86\u591a\u8fdb\u7a0b\u6a21\u578b\uff0cSwoole\u8fd8\u63d0\u4f9b\u4e86\u4e00\u79cd\u534f\u7a0b\u6a21\u578b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u8f7b\u91cf\u7ea7\u7684\u5e76\u53d1\u5904\u7406\u3002\u534f\u7a0b\u6a21\u578b\u4e2d\uff0c\u591a\u4e2a\u4efb\u52a1\u53ef\u4ee5\u5728\u540c\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u5e76\u53d1\u6267\u884c\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u7ebf\u7a0b\u4e0a\u4e0b\u6587\u5207\u6362\u7684\u5f00\u9500\u548c\u5185\u5b58\u5360\u7528\u3002&lt;\/p&gt;&lt;p&gt;Swoole\u7684\u534f\u7a0b\u6a21\u578b\u901a\u8fc7PHP\u534f\u7a0b\u5b9e\u73b0\uff0c\u53ef\u4ee5\u4f7f\u7528\u5173\u952e\u5b57yield\u6765\u5b9e\u73b0\u534f\u7a0b\u5207\u6362\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a&lt;\/p&gt;&lt;pre class=&#8221;brush:php;toolbar:false;&#8221;&gt;function task() { \/\/ do something &#8230; yield; \/\/ \u534f\u7a0b\u5207\u6362 \/\/ do something &#8230; } \/\/ \u521b\u5efa\u534f\u7a0b $coroutine1 = task(); $coroutine2 = task(); \/\/ \u6267\u884c\u534f\u7a0b while(! $coroutine1-&amp;gt;isFinished() &amp;amp;&amp;amp; ! $coroutine2-&amp;gt;isFinished()) { $coroutine1-&amp;gt;resume(); \/\/ \u6267\u884c\u534f\u7a0b1 $coroutine2-&amp;gt;resume(); \/\/ \u6267\u884c\u534f\u7a0b2 } \u767b\u5f55\u540e\u590d\u5236 \u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e24\u4e2a\u534f\u7a0b\u6765\u5904\u7406\u8ba1\u7b97\u4efb\u52a1\uff0c\u5e76\u901a\u8fc7while\u5faa\u73af\u6765\u8ba9\u5b83\u4eec\u4ea4\u66ff\u6267\u884c\u3002\u6bcf\u4e2a\u534f\u7a0b\u4e2d\uff0c\u5728\u5230\u8fbeyield\u5173\u952e\u5b57\u65f6\uff0c\u4f1a\u81ea\u52a8\u6302\u8d77\u5e76\u5207\u6362\u5230\u4e0b\u4e00\u4e2a\u534f\u7a0b\u4e2d\u6267\u884c\u3002 Swoole\u7684\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b \u9664\u4e86\u591a\u8fdb\u7a0b\u6a21\u578b\u548c\u534f\u7a0b\u6a21\u578b\uff0cSwoole\u8fd8\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585eIO\u64cd\u4f5c\u548c\u4e8b\u4ef6\u9a71\u52a8\u7684\u5e76\u53d1\u5904\u7406\u3002\u5f02\u6b65\u7f16\u7a0b\u6a21\u578b\u4e2d\uff0c\u591a\u4e2a\u4efb\u52a1\u53ef\u4ee5\u540c\u65f6\u7b49\u5f85I\/O\u64cd\u4f5c\u7684\u8fd4\u56de\u7ed3\u679c\uff0c\u8fd9\u79cd\u6a21\u578b\u53ef\u4ee5\u6709\u6548\u63d0\u9ad8\u7a0b\u5e8f\u7684\u54cd\u5e94\u80fd\u529b\u548c\u541e\u5410\u91cf\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-23557","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23557","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=23557"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/23557\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=23557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=23557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=23557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}