{"id":25036,"date":"2024-11-21T14:54:50","date_gmt":"2024-11-21T06:54:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/25036\/"},"modified":"2024-11-21T14:54:50","modified_gmt":"2024-11-21T06:54:50","slug":"swoole%e8%bf%9b%e9%98%b6%ef%bc%9a%e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%9a%84%e7%a3%81%e7%9b%98io%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/25036\/","title":{"rendered":"Swoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/465\/014\/169942291491357.jpg\" class=\"aligncenter\" title=\"Swoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u63d2\u56fe\" alt=\"Swoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u63d2\u56fe\" \/><\/p>\n<p>Swoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd<\/p>\n<p>\u5f15\u8a00\uff1a<br \/>\u968f\u7740\u4e92\u8054\u7f51\u5e94\u7528\u7684\u53d1\u5c55\uff0c\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u6210\u4e3a\u4e86\u4e00\u4e2a\u5173\u952e\u7684\u95ee\u9898\u3002\u5728\u9ad8\u5e76\u53d1\u7684\u60c5\u51b5\u4e0b\uff0c\u5927\u91cf\u7684\u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u6210\u4e3a\u6027\u80fd\u7684\u74f6\u9888\u3002\u800cSwoole\u4f5c\u4e3a\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1\u5f15\u64ce\uff0c\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u4f18\u5316\u78c1\u76d8IO\u6027\u80fd\u7684\u65b9\u6cd5\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5229\u7528Swoole\u7684\u7279\u6027\uff0c\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\uff0c\u5e76\u7ed9\u51fa\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<p>\u4e00\u3001\u4f7f\u7528\u5f02\u6b65IO<\/p>\n<p>\u4f20\u7edf\u7684\u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u662f\u963b\u585e\u7684\uff0c\u5373\u5728\u8fdb\u884cIO\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f1a\u88ab\u963b\u585e\uff0c\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210\u624d\u80fd\u7ee7\u7eed\u6267\u884c\u3002\u800cSwoole\u63d0\u4f9b\u4e86\u5f02\u6b65IO\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585e\u7684\u78c1\u76d8IO\u64cd\u4f5c\u3002\u901a\u8fc7\u5c06\u78c1\u76d8IO\u64cd\u4f5c\u653e\u5165\u4e00\u4e2a\u72ec\u7acb\u7684\u4efb\u52a1\u4e2d\uff0c\u53ef\u4ee5\u5728\u7b49\u5f85IO\u7ed3\u679c\u7684\u540c\u65f6\uff0c\u7ee7\u7eed\u5904\u7406\u5176\u4ed6\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u5f02\u6b65IO\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;?php $filename = 'test.txt';\n$fd = swoole_coroutine_open($filename, 'w');\nswoole_coroutine::create(function () use ($fd) {\n    $content = \"Hello, Swoole!\";\n    swoole_coroutine_write($fd, $content);\n    swoole_coroutine_close($fd);\n});<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528_coroutine_open\u6253\u5f00\u6587\u4ef6\u5e76\u8fd4\u56de\u4e00\u4e2a\u6587\u4ef6\u53e5\u67c4$fd\uff0c\u7136\u540e\u4f7f\u7528swoole_coroutine_write\u8fdb\u884c\u5199\u5165\u64cd\u4f5c\uff0c\u5e76\u4f7f\u7528swoole_coroutine_close\u5173\u95ed\u6587\u4ef6\u3002\u901a\u8fc7swoole_coroutine::create\u521b\u5efa\u4e00\u4e2a\u534f\u7a0b\uff0c\u5b9e\u73b0\u5f02\u6b65\u6267\u884cIO\u64cd\u4f5c\u3002\u5728IO\u64cd\u4f5c\u7684\u7b49\u5f85\u8fc7\u7a0b\u4e2d\uff0c\u534f\u7a0b\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n<p>\u4e8c\u3001\u4f7f\u7528Swoole\u7684\u6587\u4ef6\u7f13\u5b58<\/p>\n<p>\u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u662f\u8f83\u4e3a\u8017\u65f6\u7684\uff0c\u5c24\u5176\u662f\u5728\u9891\u7e41\u8bfb\u5199\u5c0f\u6587\u4ef6\u7684\u60c5\u51b5\u4e0b\u3002\u4e3a\u4e86\u907f\u514d\u9891\u7e41\u7684IO\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528Swoole\u7684\u6587\u4ef6\u7f13\u5b58\u529f\u80fd\u3002\u6587\u4ef6\u7f13\u5b58\u5c06\u6587\u4ef6\u5185\u5bb9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u51cf\u5c11\u4e86IO\u64cd\u4f5c\u7684\u6b21\u6570\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u6587\u4ef6\u7f13\u5b58\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;?php $filename = 'test.txt';\n$content = swoole_file_get_contents($filename);\nif($content){\n    echo $content;\n}else{\n    echo \"File not found\";\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528swoole_file_get_contents\u5c06\u6587\u4ef6\u5185\u5bb9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5904\u7406\u3002\u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0c\u5219\u8f93\u51fa\u6587\u4ef6\u5185\u5bb9\uff1b\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219\u8f93\u51fa\u63d0\u793a\u4fe1\u606f\u3002<\/p>\n<p>\u4e09\u3001\u4f7f\u7528\u534f\u7a0bMySQL\u5ba2\u6237\u7aef<\/p>\n<p>\u4f20\u7edf\u7684MySQL\u5ba2\u6237\u7aef\u64cd\u4f5c\u5f80\u5f80\u662f\u540c\u6b65\u7684\uff0c\u5373\u5728\u6267\u884cMySQL\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f1a\u88ab\u963b\u585e\uff0c\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210\u624d\u80fd\u7ee7\u7eed\u6267\u884c\u3002\u800cSwoole\u63d0\u4f9b\u4e86\u534f\u7a0bMySQL\u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585e\u7684MySQL\u64cd\u4f5c\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u534f\u7a0bMySQL\u5ba2\u6237\u7aef\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre>&lt;?php $server = [\n    'host' =&gt; '127.0.0.1',\n    'user' =&amp;gt; 'root',\n    'password' =&amp;gt; 'password',\n    'database' =&amp;gt; 'test',\n];\n\n$mysql = new SwooleCoroutineMySQL();\n$mysql-&amp;gt;connect($server);\n\n$result = $mysql-&amp;gt;query('SELECT * FROM table');\nif($result){\n    var_dump($result);\n}else{\n    echo \"Query error\";\n}\n\n$mysql-&amp;gt;close();<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528$mysql-&gt;connect\u8fde\u63a5\u5230MySQL\u670d\u52a1\u5668\uff0c\u7136\u540e\u4f7f\u7528$mysql-&gt;query\u6267\u884cSQL\u67e5\u8be2\u8bed\u53e5\uff0c\u5e76\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5904\u7406\u3002\u5728\u6267\u884cMySQL\u64cd\u4f5c\u7684\u7b49\u5f85\u8fc7\u7a0b\u4e2d\uff0c\u534f\u7a0b\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002<\/p>\n<p>\u7ed3\u8bba\uff1a<br \/>\u901a\u8fc7\u5229\u7528Swoole\u7684\u5f02\u6b65IO\u3001\u6587\u4ef6\u7f13\u5b58\u548c\u534f\u7a0bMySQL\u5ba2\u6237\u7aef\u7b49\u7279\u6027\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u3002\u5728\u9ad8\u5e76\u53d1\u7684\u60c5\u51b5\u4e0b\uff0c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\uff0c\u51cf\u5c11IO\u64cd\u4f5c\u6b21\u6570\uff0c\u5bf9\u4e8e\u4fdd\u8bc1\u5e94\u7528\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u6027\u80fd\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u5e0c\u671b\u8bfb\u8005\u53ef\u4ee5\u4e86\u89e3\u5e76\u638c\u63e1\u5982\u4f55\u4f7f\u7528Swoole\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\uff0c\u5e76\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u53d1\u6325\u5176\u4f5c\u7528\u3002\u5b9e\u8df5\u4e2d\u901a\u8fc7\u4e0d\u65ad\u7684\u4f18\u5316\u548c\u8c03\u6574\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u5347\u670d\u52a1\u5668\u7684\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fSwoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\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>Swoole\u8fdb\u9636\uff1a\u5982\u4f55\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd \u5f15\u8a00\uff1a\u968f\u7740\u4e92\u8054\u7f51\u5e94\u7528\u7684\u53d1\u5c55\uff0c\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u6210\u4e3a\u4e86\u4e00\u4e2a\u5173\u952e\u7684\u95ee\u9898\u3002\u5728\u9ad8\u5e76\u53d1\u7684\u60c5\u51b5\u4e0b\uff0c\u5927\u91cf\u7684\u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u6210\u4e3a\u6027\u80fd\u7684\u74f6\u9888\u3002\u800cSwoole\u4f5c\u4e3a\u4e00\u6b3e\u9ad8\u6027\u80fd\u7684\u7f51\u7edc\u901a\u4fe1\u5f15\u64ce\uff0c\u4e5f\u63d0\u4f9b\u4e86\u4e00\u4e9b\u4f18\u5316\u78c1\u76d8IO\u6027\u80fd\u7684\u65b9\u6cd5\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5229\u7528Swoole\u7684\u7279\u6027\uff0c\u4f18\u5316\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\uff0c\u5e76\u7ed9\u51fa\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002 \u4e00\u3001\u4f7f\u7528\u5f02\u6b65IO \u4f20\u7edf\u7684\u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u662f\u963b\u585e\u7684\uff0c\u5373\u5728\u8fdb\u884cIO\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f1a\u88ab\u963b\u585e\uff0c\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210\u624d\u80fd\u7ee7\u7eed\u6267\u884c\u3002\u800cSwoole\u63d0\u4f9b\u4e86\u5f02\u6b65IO\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585e\u7684\u78c1\u76d8IO\u64cd\u4f5c\u3002\u901a\u8fc7\u5c06\u78c1\u76d8IO\u64cd\u4f5c\u653e\u5165\u4e00\u4e2a\u72ec\u7acb\u7684\u4efb\u52a1\u4e2d\uff0c\u53ef\u4ee5\u5728\u7b49\u5f85IO\u7ed3\u679c\u7684\u540c\u65f6\uff0c\u7ee7\u7eed\u5904\u7406\u5176\u4ed6\u4efb\u52a1\uff0c\u4ece\u800c\u63d0\u9ad8\u670d\u52a1\u5668\u7684\u5e76\u53d1\u5904\u7406\u80fd\u529b\u3002 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u5f02\u6b65IO\u7684\u793a\u4f8b\u4ee3\u7801\uff1a &lt;?php $filename = &#8216;test.txt&#8217;; $fd = swoole_coroutine_open($filename, &#8216;w&#8217;); swoole_coroutine::create(function () use ($fd) { $content = &#8220;Hello, Swoole!&#8221;; swoole_coroutine_write($fd, $content); swoole_coroutine_close($fd); }); \u767b\u5f55\u540e\u590d\u5236 \u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528_coroutine_open\u6253\u5f00\u6587\u4ef6\u5e76\u8fd4\u56de\u4e00\u4e2a\u6587\u4ef6\u53e5\u67c4$fd\uff0c\u7136\u540e\u4f7f\u7528swoole_coroutine_write\u8fdb\u884c\u5199\u5165\u64cd\u4f5c\uff0c\u5e76\u4f7f\u7528swoole_coroutine_close\u5173\u95ed\u6587\u4ef6\u3002\u901a\u8fc7swoole_coroutine::create\u521b\u5efa\u4e00\u4e2a\u534f\u7a0b\uff0c\u5b9e\u73b0\u5f02\u6b65\u6267\u884cIO\u64cd\u4f5c\u3002\u5728IO\u64cd\u4f5c\u7684\u7b49\u5f85\u8fc7\u7a0b\u4e2d\uff0c\u534f\u7a0b\u53ef\u4ee5\u7ee7\u7eed\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002 \u4e8c\u3001\u4f7f\u7528Swoole\u7684\u6587\u4ef6\u7f13\u5b58 \u78c1\u76d8IO\u64cd\u4f5c\u5f80\u5f80\u662f\u8f83\u4e3a\u8017\u65f6\u7684\uff0c\u5c24\u5176\u662f\u5728\u9891\u7e41\u8bfb\u5199\u5c0f\u6587\u4ef6\u7684\u60c5\u51b5\u4e0b\u3002\u4e3a\u4e86\u907f\u514d\u9891\u7e41\u7684IO\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528Swoole\u7684\u6587\u4ef6\u7f13\u5b58\u529f\u80fd\u3002\u6587\u4ef6\u7f13\u5b58\u5c06\u6587\u4ef6\u5185\u5bb9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u51cf\u5c11\u4e86IO\u64cd\u4f5c\u7684\u6b21\u6570\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u670d\u52a1\u5668\u7684\u78c1\u76d8IO\u6027\u80fd\u3002 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u6587\u4ef6\u7f13\u5b58\u7684\u793a\u4f8b\u4ee3\u7801\uff1a &lt;?php $filename = &#8216;test.txt&#8217;; $content = swoole_file_get_contents($filename); if($content){ echo $content; }else{ echo &#8220;File not found&#8221;; } \u767b\u5f55\u540e\u590d\u5236 \u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528swoole_file_get_contents\u5c06\u6587\u4ef6\u5185\u5bb9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u7136\u540e\u6839\u636e\u9700\u6c42\u8fdb\u884c\u5904\u7406\u3002\u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0c\u5219\u8f93\u51fa\u6587\u4ef6\u5185\u5bb9\uff1b\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219\u8f93\u51fa\u63d0\u793a\u4fe1\u606f\u3002 \u4e09\u3001\u4f7f\u7528\u534f\u7a0bMySQL\u5ba2\u6237\u7aef \u4f20\u7edf\u7684MySQL\u5ba2\u6237\u7aef\u64cd\u4f5c\u5f80\u5f80\u662f\u540c\u6b65\u7684\uff0c\u5373\u5728\u6267\u884cMySQL\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5e94\u7528\u7a0b\u5e8f\u4f1a\u88ab\u963b\u585e\uff0c\u76f4\u5230\u64cd\u4f5c\u5b8c\u6210\u624d\u80fd\u7ee7\u7eed\u6267\u884c\u3002\u800cSwoole\u63d0\u4f9b\u4e86\u534f\u7a0bMySQL\u5ba2\u6237\u7aef\uff0c\u53ef\u4ee5\u5b9e\u73b0\u975e\u963b\u585e\u7684MySQL\u64cd\u4f5c\u3002 \u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528Swoole\u534f\u7a0bMySQL\u5ba2\u6237\u7aef\u7684\u793a\u4f8b\u4ee3\u7801\uff1a &lt;?php $server = [&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-25036","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25036","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=25036"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/25036\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=25036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=25036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=25036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}