{"id":66022,"date":"2025-05-03T17:33:00","date_gmt":"2025-05-03T09:33:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/66022\/"},"modified":"2025-05-03T17:33:00","modified_gmt":"2025-05-03T09:33:00","slug":"ktor-%e4%bb%a5-kotlin-%e6%96%b9%e5%bc%8f%e5%88%9b%e5%bb%ba%e5%bc%82%e6%ad%a5%e5%ba%94%e7%94%a8%e7%a8%8b%e5%ba%8f%ef%bc%81-3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/66022\/","title":{"rendered":"Ktor &#8211; \u4ee5 Kotlin \u65b9\u5f0f\u521b\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\uff01"},"content":{"rendered":"<p>ktor 3.0 \u5df2\u53d1\u5e03\uff0c\u4e3a\u5f00\u53d1\u4eba\u5458\u5728 kotlin \u4e2d\u6784\u5efa\u5f02\u6b65\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u5f15\u5165\u4e86\u91cd\u5927\u589e\u5f3a\u529f\u80fd\u548c\u529f\u80fd\u3002\u8fd9\u7bc7\u535a\u6587\u5c06\u63a2\u8ba8 ktor \u7684\u5b9a\u4e49\u30013.0 \u7248\u672c\u5e26\u6765\u7684\u53d8\u5316\u3001\u5b83\u7684\u4f18\u70b9\u3001\u4e0e\u65e9\u671f\u7248\u672c\u7684\u5dee\u5f02\u4ee5\u53ca\u5b83\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u5e76\u4ee5\u793a\u4f8b\u4ee3\u7801\u7247\u6bb5\u4f5c\u4e3a\u7ed3\u5c3e\u3002<\/p>\n<p><strong>ktor \u7684\u5b9a\u4e49<\/strong><br \/> ktor \u662f\u4e00\u4e2a\u4e13\u4e3a\u5728 kotlin \u4e2d\u6784\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\u800c\u8bbe\u8ba1\u7684\u6846\u67b6\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u9ad8\u6548\u5730\u521b\u5efa\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u5229\u7528 kotlin \u7684\u534f\u7a0b\u63d0\u4f9b\u7b80\u5355\u76f4\u89c2\u7684 api \u6765\u5904\u7406 http \u8bf7\u6c42\u548c\u54cd\u5e94\uff0c\u4f7f\u5176\u6210\u4e3a\u5fae\u670d\u52a1\u548c web \u5e94\u7528\u7a0b\u5e8f\u7684\u7edd\u4f73\u9009\u62e9\u3002 ktor \u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u548c\u7075\u6d3b\u6027\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u6839\u636e\u81ea\u5df1\u7684\u7279\u5b9a\u9700\u6c42\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u540c\u65f6\u4e0e\u5176\u4ed6 kotlin \u5de5\u5177\u65e0\u7f1d\u96c6\u6210\u3002<\/p>\n<p><strong>ktor 3.0 \u5f15\u5165\u4e86\u51e0\u9879\u5173\u952e\u66f4\u6539\uff1a<\/strong><\/p>\n<ul>\n<li>\u8fc1\u79fb\u5230 kotlinx-io\uff1a\u6700\u91cd\u8981\u7684\u66f4\u65b0\u662f\u4ece ktor \u4e4b\u524d\u7684 io \u5904\u7406\u8fc7\u6e21\u5230\u65b0\u7684 kotlinx-io \u5e93\uff0c\u8fd9\u589e\u5f3a\u4e86 kotlin \u5e93\u7684\u6027\u80fd\u5e76\u6807\u51c6\u5316\u4e86 io \u529f\u80fd12\u3002<\/li>\n<li>\u652f\u6301\u670d\u52a1\u5668\u53d1\u9001\u4e8b\u4ef6 (sse)\uff1a\u6b64\u7248\u672c\u589e\u52a0\u4e86\u5bf9 sse \u7684\u521d\u59cb\u652f\u6301\uff0c\u5141\u8bb8\u670d\u52a1\u5668\u901a\u8fc7 http \u8fde\u63a5\u5c06\u66f4\u65b0\u63a8\u9001\u5230\u5ba2\u6237\u7aef\uff0c\u800c\u4e0d\u9700\u8981\u5ba2\u6237\u7aef\u8f6e\u8be2\u65b0\u6570\u636e12\u3002<\/li>\n<li>\u6027\u80fd\u6539\u8fdb\uff1a\u65b0\u7684 io \u5e93\u51cf\u5c11\u4e86\u901a\u9053\u548c\u7f51\u7edc\u63a5\u53e3\u4e4b\u95f4\u4e0d\u5fc5\u8981\u7684\u5b57\u8282\u590d\u5236\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u6570\u636e\u5904\u7406\u6548\u7387\uff0c\u5e76\u5728\u57fa\u51c6\u6d4b\u8bd5\u4e2d\u663e\u7740\u63d0\u9ad8\u4e86\u6027\u80fd12\u3002<\/li>\n<\/ul>\n<h2> <strong>ktor 3.0\u7684\u4f18\u52bf<\/strong> <\/h2>\n<p><strong>ktor 3.0 \u5177\u6709\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u52bf\uff1a<\/strong><\/p>\n<ul>\n<li>\u6027\u80fd\u63d0\u5347\uff1a\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u5207\u6362\u5230 kotlinx-io \u540e\u6027\u80fd\u63d0\u5347\u4e86 90% \u4ee5\u4e0a\uff0c\u4f7f ktor \u5e94\u7528\u7a0b\u5e8f\u66f4\u5feb\u3001\u54cd\u5e94\u66f4\u5feb12\u3002<\/li>\n<li>\u4e0e kotlin \u5de5\u5177\u66f4\u597d\u7684\u96c6\u6210\uff1a\u589e\u5f3a\u4e0e kotlin \u5de5\u5177\u7684\u517c\u5bb9\u6027\uff0c\u7b80\u5316\u4e86\u5f00\u53d1\u6d41\u7a0b\u5e76\u63d0\u9ad8\u4e86\u6574\u4f53\u751f\u4ea7\u529b14\u3002<\/li>\n<li>\u591a\u5e73\u53f0\u529f\u80fd\uff1a\u65b0\u5e93\u652f\u6301\u591a\u5e73\u53f0\u5f00\u53d1\uff0c\u8ba9\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u8de8\u5e73\u53f0\u5de5\u4f5c2\u3002<\/li>\n<\/ul>\n<h2> \u65e7\u7248\u672c\u548c ktor 3.0 \u4e4b\u95f4\u7684\u5dee\u5f02 <\/h2>\n<ul>\n<li>\u4ece\u65e9\u671f\u7248\u672c\u7684 ktor \u5230 3.0 \u7684\u8fc7\u6e21\u5305\u62ec\uff1a<\/li>\n<li>io api \u7684\u91cd\u5927\u53d8\u5316\uff1a\u8bb8\u591a\u4f4e\u7ea7 io \u7c7b\u5df2\u88ab\u5f03\u7528\u6216\u4fee\u6539\uff0c\u8981\u6c42\u5f00\u53d1\u4eba\u5458\u76f8\u5e94\u5730\u66f4\u65b0\u5176\u4ee3\u7801\u5e93\u3002\u4f46\u662f\uff0c\u5411\u540e\u517c\u5bb9\u6027\u5c06\u4fdd\u6301\u5230\u7248\u672c 4.012\u3002<\/li>\n<li>\u589e\u5f3a\u529f\u80fd\uff1a\u4ee5\u524d\u7248\u672c\u4e2d\u6ca1\u6709\u7684 sse \u652f\u6301\u7b49\u65b0\u529f\u80fd\uff0c\u4e3a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5b9e\u65f6\u901a\u4fe1\u63d0\u4f9b\u66f4\u591a\u9009\u987914\u3002<\/li>\n<\/ul>\n<p><strong>ktor \u7684\u5de5\u4f5c\u539f\u7406<\/strong><br \/> ktor \u5728\u57fa\u4e8e\u534f\u7a0b\u7684\u67b6\u6784\u4e0a\u8fd0\u884c\uff0c\u5141\u8bb8\u5f02\u6b65\u5904\u7406\u8bf7\u6c42\u548c\u54cd\u5e94\u3002\u5b83\u5229\u7528\u76f4\u89c2\u7684\u8def\u7531\u673a\u5236\u6765\u7b80\u5316 http \u7aef\u70b9\u7684\u7ba1\u7406\u3002\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528 dsl\uff08\u9886\u57df\u7279\u5b9a\u8bed\u8a00\uff09\u5b9a\u4e49\u8def\u7531\uff0c\u4ece\u800c\u8f7b\u677e\u521b\u5efa restful api \u6216 websocket \u8fde\u63a5\u3002<\/p>\n<p><strong>\u793a\u4f8b\u4ee3\u7801<\/strong><\/p>\n<pre>import io.ktor.application.*\nimport io.ktor.response.*\nimport io.ktor.routing.*\nimport io.ktor.server.engine.*\nimport io.ktor.server.netty.*\n\nfun main() {\n    embeddedserver(netty, port = 8000) {\n        routing {\n            get(\"\/\") {\n                call.respondtext(\"hello, world!\")\n            }\n        }\n    }.start(wait = true)\n}\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528 netty \u521b\u5efa\u5d4c\u5165\u5f0f\u670d\u52a1\u5668\u3002<\/li>\n<li>\u5b9a\u4e49\u4e86\u4e00\u6761\u54cd\u5e94\u201chello, world!\u201d\u7684\u8def\u7531\u3002\u5f53\u8bbf\u95ee\u6839 url\uff08\u201c\/\u201d\uff09\u65f6\u3002<\/li>\n<\/ul>\n<p><strong>ktor \u542f\u7528\u8de8\u57df\u8d44\u6e90\u5171\u4eab (cors)<\/strong><br \/> \u5982\u679c\u60a8\u7684\u670d\u52a1\u5668\u9700\u8981\u5904\u7406\u8de8\u57df\u8bf7\u6c42\uff0c\u5219\u9700\u8981\u5b89\u88c5\u5e76\u914d\u7f6e cors ktor \u63d2\u4ef6\u3002\u8be5\u63d2\u4ef6\u5141\u8bb8\u60a8\u914d\u7f6e\u5141\u8bb8\u7684\u4e3b\u673a\u3001http \u65b9\u6cd5\u3001\u5ba2\u6237\u7aef\u8bbe\u7f6e\u7684\u6807\u5934\u7b49\u7b49\u3002<\/p>\n<p><strong>\u5178\u578b\u7684 cors \u914d\u7f6e\u53ef\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/strong><\/p>\n<pre>install(cors) {\n    allowhost(\"0.0.0.0:5000\")\n    allowheader(httpheaders.contenttype)\n}\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u5b83\u8fd8\u5141\u8bb8\u4f7f\u7528 gzip \u7b49\u7f16\u7801\u7b97\u6cd5\u8fdb\u884c\u538b\u7f29\u54cd\u5e94<\/strong><br \/> \u538b\u7f29\u63d2\u4ef6\u5141\u8bb8\u60a8\u538b\u7f29\u4f20\u51fa\u7684\u5185\u5bb9\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u538b\u7f29\u7b97\u6cd5\uff0c\u5305\u62ec gzip \u548c deflate\uff0c\u6307\u5b9a\u538b\u7f29\u6570\u636e\u6240\u9700\u7684\u6761\u4ef6\uff08\u4f8b\u5982\u5185\u5bb9\u7c7b\u578b\u6216\u54cd\u5e94\u5927\u5c0f\uff09\uff0c\u751a\u81f3\u53ef\u4ee5\u6839\u636e\u7279\u5b9a\u8bf7\u6c42\u53c2\u6570\u6765\u538b\u7f29\u6570\u636e\u3002<\/p>\n<p><strong>\u7528\u6cd5<\/strong><br \/> \u60a8\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u914d\u7f6e\u538b\u7f29\uff1a\u4ec5\u542f\u7528\u7279\u5b9a\u7f16\u7801\u5668\u3001\u6307\u5b9a\u5176\u4f18\u5148\u7ea7\u3001\u4ec5\u538b\u7f29\u7279\u5b9a\u5185\u5bb9\u7c7b\u578b\u7b49\u7b49\u3002\u4f8b\u5982\uff0c\u8981\u4ec5\u542f\u7528\u7279\u5b9a\u7f16\u7801\u5668\uff0c\u8bf7\u8c03\u7528\u76f8\u5e94\u7684\u6269\u5c55\u51fd\u6570\uff1a<\/p>\n<pre>install(compression) {\n    gzip()\n    deflate()\n}\n\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4e0b\u9762\u7684\u4ee3\u7801\u7247\u6bb5\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528 gzip \u538b\u7f29\u6240\u6709\u6587\u672c\u5b50\u7c7b\u578b\u548c javascript \u4ee3\u7801\uff1a<\/p>\n<pre>install(Compression) {\n    gzip {\n        matchContentType(\n            ContentType.Text.Any,\n            ContentType.Application.JavaScript\n        )\n    }\n}\n<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p><strong>\u8fd9\u662f ktor \u5e94\u7528\u7a0b\u5e8f\u7684\u6587\u4ef6\u7ed3\u6784<\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173155501217146.jpg\" class=\"aligncenter\" title=\"Ktor &#8211; \u4ee5 Kotlin \u65b9\u5f0f\u521b\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\uff01\u63d2\u56fe\" alt=\"Ktor &#8211; \u4ee5 Kotlin \u65b9\u5f0f\u521b\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\uff01\u63d2\u56fe\" \/><br \/> \u8bbf\u95ee ktor.com \u5e76\u5bfc\u822a\u81f3 ktor \u9879\u76ee\u751f\u6210\u5668\u5e76\u4ece\u90a3\u91cc\u5f00\u59cb\u3002<br \/> \u5982\u679c\u60a8\u60f3\u4e86\u89e3\u6709\u5173 ktor \u7684\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95ee\u6b64\u7f51\u7ad9 ktor.com<\/p>\n<p><strong>\u7ed3\u8bba<\/strong><br \/> ktor 3.0 \u6807\u5fd7\u7740\u8be5\u6846\u67b6\u529f\u80fd\u7684\u91cd\u5927\u8fdb\u6b65\uff0c\u7279\u522b\u662f\u8fc1\u79fb\u5230 kotlinx-io\u3001\u6539\u8fdb\u7684\u6027\u80fd\u6307\u6807\u4ee5\u53ca\u5bf9 sse \u7b49\u5b9e\u65f6\u529f\u80fd\u7684\u652f\u6301\u3002\u8fd9\u4e9b\u589e\u5f3a\u529f\u80fd\u4f7f ktor \u6210\u4e3a\u5e0c\u671b\u5728 kotlin \u4e2d\u6784\u5efa\u9ad8\u6548\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u4eba\u5458\u7684\u53ef\u9760\u9009\u62e9\u3002\u5f53\u5f00\u53d1\u4eba\u5458\u8fc1\u79fb\u73b0\u6709\u9879\u76ee\u6216\u4f7f\u7528 ktor 3.0 \u542f\u52a8\u65b0\u9879\u76ee\u65f6\uff0c\u4ed6\u4eec\u5c06\u53d7\u76ca\u4e8e\u5b83\u4e0e kotlin \u5de5\u5177\u7684\u6539\u8fdb\u96c6\u6210\u4ee5\u53ca\u5b83\u4e3a\u73b0\u4ee3\u5e94\u7528\u7a0b\u5e8f\u5f00\u53d1\u63d0\u4f9b\u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fKtor &#8211; \u4ee5 Kotlin \u65b9\u5f0f\u521b\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\uff01\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8IDCBABY\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ktor 3.0 \u5df2\u53d1\u5e03\uff0c\u4e3a\u5f00\u53d1\u4eba\u5458\u5728 kotlin \u4e2d\u6784\u5efa\u5f02\u6b65\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u5e94\u7528\u7a0b\u5e8f\u5f15\u5165\u4e86\u91cd\u5927\u589e\u5f3a\u529f\u80fd\u548c\u529f\u80fd\u3002\u8fd9\u7bc7\u535a\u6587\u5c06\u63a2\u8ba8 ktor \u7684\u5b9a\u4e49\u30013.0 \u7248\u672c\u5e26\u6765\u7684\u53d8\u5316\u3001\u5b83\u7684\u4f18\u70b9\u3001\u4e0e\u65e9\u671f\u7248\u672c\u7684\u5dee\u5f02\u4ee5\u53ca\u5b83\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u5e76\u4ee5\u793a\u4f8b\u4ee3\u7801\u7247\u6bb5\u4f5c\u4e3a\u7ed3\u5c3e\u3002 ktor \u7684\u5b9a\u4e49 ktor \u662f\u4e00\u4e2a\u4e13\u4e3a\u5728 kotlin \u4e2d\u6784\u5efa\u5f02\u6b65\u5e94\u7528\u7a0b\u5e8f\u800c\u8bbe\u8ba1\u7684\u6846\u67b6\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u9ad8\u6548\u5730\u521b\u5efa\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u5229\u7528 kotlin \u7684\u534f\u7a0b\u63d0\u4f9b\u7b80\u5355\u76f4\u89c2\u7684 api \u6765\u5904\u7406 http \u8bf7\u6c42\u548c\u54cd\u5e94\uff0c\u4f7f\u5176\u6210\u4e3a\u5fae\u670d\u52a1\u548c web \u5e94\u7528\u7a0b\u5e8f\u7684\u7edd\u4f73\u9009\u62e9\u3002 ktor \u7684\u8f7b\u91cf\u7ea7\u7279\u6027\u548c\u7075\u6d3b\u6027\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u6839\u636e\u81ea\u5df1\u7684\u7279\u5b9a\u9700\u6c42\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\uff0c\u540c\u65f6\u4e0e\u5176\u4ed6 kotlin \u5de5\u5177\u65e0\u7f1d\u96c6\u6210\u3002 ktor 3.0 \u5f15\u5165\u4e86\u51e0\u9879\u5173\u952e\u66f4\u6539\uff1a \u8fc1\u79fb\u5230 kotlinx-io\uff1a\u6700\u91cd\u8981\u7684\u66f4\u65b0\u662f\u4ece ktor \u4e4b\u524d\u7684 io \u5904\u7406\u8fc7\u6e21\u5230\u65b0\u7684 kotlinx-io \u5e93\uff0c\u8fd9\u589e\u5f3a\u4e86 kotlin \u5e93\u7684\u6027\u80fd\u5e76\u6807\u51c6\u5316\u4e86 io \u529f\u80fd12\u3002 \u652f\u6301\u670d\u52a1\u5668\u53d1\u9001\u4e8b\u4ef6 (sse)\uff1a\u6b64\u7248\u672c\u589e\u52a0\u4e86\u5bf9 sse \u7684\u521d\u59cb\u652f\u6301\uff0c\u5141\u8bb8\u670d\u52a1\u5668\u901a\u8fc7 http \u8fde\u63a5\u5c06\u66f4\u65b0\u63a8\u9001\u5230\u5ba2\u6237\u7aef\uff0c\u800c\u4e0d\u9700\u8981\u5ba2\u6237\u7aef\u8f6e\u8be2\u65b0\u6570\u636e12\u3002 \u6027\u80fd\u6539\u8fdb\uff1a\u65b0\u7684 io \u5e93\u51cf\u5c11\u4e86\u901a\u9053\u548c\u7f51\u7edc\u63a5\u53e3\u4e4b\u95f4\u4e0d\u5fc5\u8981\u7684\u5b57\u8282\u590d\u5236\uff0c\u4ece\u800c\u63d0\u9ad8\u4e86\u6570\u636e\u5904\u7406\u6548\u7387\uff0c\u5e76\u5728\u57fa\u51c6\u6d4b\u8bd5\u4e2d\u663e\u7740\u63d0\u9ad8\u4e86\u6027\u80fd12\u3002 ktor 3.0\u7684\u4f18\u52bf ktor 3.0 \u5177\u6709\u4ee5\u4e0b\u51e0\u4e2a\u4f18\u52bf\uff1a [&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-66022","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66022","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=66022"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/66022\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=66022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=66022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=66022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}