{"id":1258,"date":"2026-01-06T16:07:09","date_gmt":"2026-01-06T08:07:09","guid":{"rendered":"https:\/\/www.52runoob.com\/?p=1258"},"modified":"2026-01-06T16:07:09","modified_gmt":"2026-01-06T08:07:09","slug":"swoole-4-x%e6%9c%8d%e5%8a%a1%e5%99%a8server%e9%85%8d%e7%bd%ae%e5%92%8c%e5%87%bd%e6%95%b0%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/www.52runoob.com\/index.php\/2026\/01\/06\/swoole-4-x%e6%9c%8d%e5%8a%a1%e5%99%a8server%e9%85%8d%e7%bd%ae%e5%92%8c%e5%87%bd%e6%95%b0%e5%88%97%e8%a1%a8\/","title":{"rendered":"Swoole\u00a04.x\u670d\u52a1\u5668Server\u914d\u7f6e\u548c\u51fd\u6570\u5217\u8868"},"content":{"rendered":"\n<p>\u4e0b\u9762\u7ed9\u4f60\u4e00\u4efd <strong>Swoole 4.x Server \u7684\u300c\u914d\u7f6e\u9879 + \u6838\u5fc3\u51fd\u6570\u300d\u5b8c\u6574\u901f\u67e5\u4e0e\u8bb2\u89e3<\/strong>\uff0c\u9002\u5408<strong>\u67e5\u6587\u6863 \/ \u9762\u8bd5 \/ \u5b9e\u6218\u90e8\u7f72<\/strong>\u4f7f\u7528\u3002<br>\u5185\u5bb9\u57fa\u4e8e <strong>Swoole 4.x\uff08\u7a33\u5b9a\u4e3b\u6d41\uff09<\/strong>\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e00\u3001Swoole Server \u662f\u4ec0\u4e48\uff1f<\/h1>\n\n\n\n<p><code>Swoole\\Server<\/code> \u662f\u4e00\u4e2a <strong>\u5e38\u9a7b\u5185\u5b58\u7684\u9ad8\u6027\u80fd\u7f51\u7edc\u670d\u52a1\u5668<\/strong>\uff0c\u652f\u6301\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>TCP \/ UDP<\/li>\n\n\n\n<li>HTTP \/ WebSocket<\/li>\n\n\n\n<li>\u591a\u8fdb\u7a0b + \u5f02\u6b65 IO<\/li>\n\n\n\n<li>\u534f\u7a0b\uff084.x \u4e4b\u540e\u662f\u6838\u5fc3\u80fd\u529b\uff09<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e8c\u3001Server \u521b\u5efa\u65b9\u5f0f<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1\ufe0f\u20e3 TCP Server<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server = new Swoole\\Server(&quot;0.0.0.0&quot;, 9501);\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">2\ufe0f\u20e3 HTTP Server<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server = new Swoole\\Http\\Server(&quot;0.0.0.0&quot;, 9501);\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">3\ufe0f\u20e3 WebSocket Server<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server = new Swoole\\WebSocket\\Server(&quot;0.0.0.0&quot;, 9501);\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e09\u3001Server \u6838\u5fc3\u914d\u7f6e\u9879\uff08set\uff09<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;set(&#x5B;\n    &#039;worker_num&#039;      =&gt; 4,\n    &#039;max_request&#039;     =&gt; 10000,\n    &#039;daemonize&#039;       =&gt; false,\n    &#039;dispatch_mode&#039;   =&gt; 2,\n]);\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001Server \u914d\u7f6e\u9879\u5927\u5168\uff08\u91cd\u70b9\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2460 \u8fdb\u7a0b\u76f8\u5173\uff08\u6700\u91cd\u8981\uff09<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>worker_num<\/td><td>Worker \u8fdb\u7a0b\u6570\uff08CPU\u6838\u6570\u00d71~2\uff09<\/td><\/tr><tr><td>reactor_num<\/td><td>Reactor \u7ebf\u7a0b\u6570<\/td><\/tr><tr><td>task_worker_num<\/td><td>Task \u8fdb\u7a0b\u6570<\/td><\/tr><tr><td>max_request<\/td><td>\u6bcf\u4e2a worker \u5904\u7406\u8bf7\u6c42\u4e0a\u9650<\/td><\/tr><tr><td>max_request_grace<\/td><td>\u5e73\u6ed1\u91cd\u542f\u9608\u503c<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2461 \u5b88\u62a4 \/ \u65e5\u5fd7<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>daemonize<\/td><td>\u662f\u5426\u5b88\u62a4\u8fdb\u7a0b<\/td><\/tr><tr><td>log_file<\/td><td>\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84<\/td><\/tr><tr><td>log_level<\/td><td>\u65e5\u5fd7\u7ea7\u522b<\/td><\/tr><tr><td>pid_file<\/td><td>PID \u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2462 \u7f51\u7edc &amp; \u6027\u80fd<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>backlog<\/td><td>listen \u961f\u5217<\/td><\/tr><tr><td>open_tcp_nodelay<\/td><td>\u5173\u95ed Nagle<\/td><\/tr><tr><td>buffer_output_size<\/td><td>\u8f93\u51fa\u7f13\u51b2<\/td><\/tr><tr><td>socket_buffer_size<\/td><td>Socket \u7f13\u51b2<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2463 TCP \u7c98\u5305\u5904\u7406<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td>open_length_check<\/td><td>\u957f\u5ea6\u534f\u8bae<\/td><\/tr><tr><td>open_eof_check<\/td><td>EOF \u534f\u8bae<\/td><\/tr><tr><td>package_length_type<\/td><td>\u5305\u5934\u7c7b\u578b<\/td><\/tr><tr><td>package_eof<\/td><td>EOF \u6807\u8bc6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2464 HTTP \/ WebSocket<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>enable_static_handler<\/td><td>\u9759\u6001\u6587\u4ef6<\/td><\/tr><tr><td>document_root<\/td><td>\u9759\u6001\u76ee\u5f55<\/td><\/tr><tr><td>http_compression<\/td><td>gzip<\/td><\/tr><tr><td>websocket_compression<\/td><td>WS \u538b\u7f29<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2465 \u534f\u7a0b\uff084.x \u91cd\u70b9\uff09<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u914d\u7f6e<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>enable_coroutine<\/td><td>\u542f\u7528\u534f\u7a0b<\/td><\/tr><tr><td>max_coroutine<\/td><td>\u6700\u5927\u534f\u7a0b\u6570<\/td><\/tr><tr><td>hook_flags<\/td><td>\u534f\u7a0b Hook<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e94\u3001Server \u751f\u547d\u5468\u671f\u56de\u8c03\u51fd\u6570\uff08\u5fc5\u987b\u638c\u63e1\uff09<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1\ufe0f\u20e3 \u670d\u52a1\u5668\u542f\u52a8<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;Start&#039;, function ($server) {\n    echo &quot;Server started\\n&quot;;\n});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2\ufe0f\u20e3 Worker \u542f\u52a8\uff08\u6700\u5e38\u7528\uff09<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;WorkerStart&#039;, function ($server, $workerId) {\n    \/\/ \u521d\u59cb\u5316\u6570\u636e\u5e93\u8fde\u63a5\u3001Redis\u3001\u5bb9\u5668\n});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3\ufe0f\u20e3 \u63a5\u6536\u6570\u636e\uff08TCP\uff09<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;Receive&#039;, function ($server, $fd, $reactorId, $data) {\n    $server-&gt;send($fd, &quot;hello&quot;);\n});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4\ufe0f\u20e3 HTTP \u8bf7\u6c42<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;Request&#039;, function ($request, $response) {\n    $response-&gt;end(&quot;Hello Swoole&quot;);\n});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">5\ufe0f\u20e3 WebSocket \u4e8b\u4ef6<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;Open&#039;, function ($server, $request) {});\n$server-&gt;on(&#039;Message&#039;, function ($server, $frame) {\n    $server-&gt;push($frame-&gt;fd, &quot;pong&quot;);\n});\n$server-&gt;on(&#039;Close&#039;, function ($server, $fd) {});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">6\ufe0f\u20e3 Task \u5f02\u6b65\u4efb\u52a1<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;on(&#039;Task&#039;, function ($server, $taskId, $srcWorkerId, $data) {\n    return &quot;ok&quot;;\n});\n\n$server-&gt;on(&#039;Finish&#039;, function ($server, $taskId, $data) {});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u516d\u3001Server \u5e38\u7528\u65b9\u6cd5\u5217\u8868\uff08\u901f\u67e5\uff09<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u2460 \u542f\u52a8 \/ \u505c\u6b62<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6cd5<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>start()<\/td><td>\u542f\u52a8\u670d\u52a1\u5668<\/td><\/tr><tr><td>shutdown()<\/td><td>\u5173\u95ed<\/td><\/tr><tr><td>reload()<\/td><td>\u70ed\u91cd\u542f<\/td><\/tr><tr><td>stop($fd)<\/td><td>\u5173\u95ed\u8fde\u63a5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2461 \u8fde\u63a5\u64cd\u4f5c<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6cd5<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>send($fd, $data)<\/td><td>\u53d1\u9001\u6570\u636e<\/td><\/tr><tr><td>close($fd)<\/td><td>\u5173\u95ed\u8fde\u63a5<\/td><\/tr><tr><td>exists($fd)<\/td><td>\u8fde\u63a5\u662f\u5426\u5b58\u5728<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2462 Task \/ \u8fdb\u7a0b<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6cd5<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>task($data)<\/td><td>\u6295\u9012\u4efb\u52a1<\/td><\/tr><tr><td>taskwait()<\/td><td>\u540c\u6b65\u4efb\u52a1<\/td><\/tr><tr><td>taskCo()<\/td><td>\u534f\u7a0b\u4efb\u52a1<\/td><\/tr><tr><td>stats()<\/td><td>\u670d\u52a1\u5668\u72b6\u6001<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2463 WebSocket<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u65b9\u6cd5<\/th><th>\u8bf4\u660e<\/th><\/tr><\/thead><tbody><tr><td>push($fd, $data)<\/td><td>\u63a8\u9001\u6d88\u606f<\/td><\/tr><tr><td>isEstablished($fd)<\/td><td>\u662f\u5426 WS<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2464 \u5b9a\u65f6\u5668<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nSwoole\\Timer::tick(1000, function () {\n    echo &quot;tick\\n&quot;;\n});\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e03\u3001\u5178\u578b\u914d\u7f6e\u6a21\u677f\uff08\u751f\u4ea7\u5efa\u8bae\uff09<\/h1>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$server-&gt;set(&#x5B;\n    &#039;worker_num&#039; =&gt; swoole_cpu_num(),\n    &#039;task_worker_num&#039; =&gt; 4,\n    &#039;max_request&#039; =&gt; 5000,\n    &#039;daemonize&#039; =&gt; true,\n    &#039;log_file&#039; =&gt; &#039;\/var\/log\/swoole.log&#039;,\n    &#039;enable_coroutine&#039; =&gt; true,\n    &#039;hook_flags&#039; =&gt; SWOOLE_HOOK_ALL,\n]);\n\n<\/pre><\/div>\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u516b\u3001Swoole 4.x \u4f7f\u7528\u6ce8\u610f\u4e8b\u9879\uff08\u8840\u6cea\u7ecf\u9a8c\uff09<\/h1>\n\n\n\n<p>\u2757 \u4e0d\u8981\u5728 WorkerStart \u91cc\u5199\u963b\u585e IO<br>\u2757 \u4e0d\u8981\u4f7f\u7528 <code>exit \/ die<\/code><br>\u2757 \u6570\u636e\u5e93\u8fde\u63a5\u8981 <strong>\u6bcf\u4e2a worker \u4e00\u4efd<\/strong><br>\u2757 \u5168\u5c40\u53d8\u91cf \u2260 \u7ebf\u7a0b\u5b89\u5168<br>\u2757 \u5fc5\u987b\u8003\u8651 <strong>\u8fdb\u7a0b\u9694\u79bb<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e5d\u3001\u548c 5.x \u7684\u5173\u952e\u533a\u522b\uff08\u7b80\u8981\uff09<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\u9879<\/th><th>4.x<\/th><\/tr><\/thead><tbody><tr><td>\u534f\u7a0b<\/td><td>\u7a33\u5b9a<\/td><\/tr><tr><td>Hook<\/td><td>\u624b\u52a8\u914d\u7f6e<\/td><\/tr><tr><td>Server API<\/td><td>\u4e3b\u6d41<\/td><\/tr><tr><td>\u751f\u6001<\/td><td>Hyperf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u5341\u3001\u4e00\u53e5\u8bdd\u603b\u7ed3<\/h1>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Swoole 4.x \u7684\u672c\u8d28\u662f\uff1a\u591a\u8fdb\u7a0b + \u534f\u7a0b + \u4e8b\u4ef6\u9a71\u52a8\u7684\u5e38\u9a7b PHP \u670d\u52a1\u5f15\u64ce<\/strong><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7ed9\u4f60\u4e00\u4efd Swoole 4.x Server \u7684\u300c\u914d\u7f6e\u9879 + \u6838\u5fc3\u51fd\u6570\u300d\u5b8c\u6574&#8230; <a class=\"more-link\" href=\"https:\/\/www.52runoob.com\/index.php\/2026\/01\/06\/swoole-4-x%e6%9c%8d%e5%8a%a1%e5%99%a8server%e9%85%8d%e7%bd%ae%e5%92%8c%e5%87%bd%e6%95%b0%e5%88%97%e8%a1%a8\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1258","post","type-post","status-publish","format-standard","hentry","category-php"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/comments?post=1258"}],"version-history":[{"count":1,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1258\/revisions"}],"predecessor-version":[{"id":1259,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/posts\/1258\/revisions\/1259"}],"wp:attachment":[{"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/media?parent=1258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/categories?post=1258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.52runoob.com\/index.php\/wp-json\/wp\/v2\/tags?post=1258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}