{"id":805,"date":"2017-11-01T15:44:06","date_gmt":"2017-11-01T07:44:06","guid":{"rendered":"http:\/\/www.xiaobo.li\/?p=805"},"modified":"2017-12-22T18:35:15","modified_gmt":"2017-12-22T10:35:15","slug":"adf-queueserver","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/805","title":{"rendered":"Adf.QueueServer"},"content":{"rendered":"<p>\u672c\u6587\u7b80\u8981\u4ecb\u7ecdAdf.QueueServer\u7684\u4e00\u4e9b\u5e38\u89c4\u5e94\u7528\u548c\u534f\u8bae\u3002<\/p>\n<h3>1. \u534f\u8bae\u63cf\u8ff0<\/h3>\n<p>\u672c\u670d\u52a1\u652f\u6301 WebSocket Json\/ WebSocket Binary \/ HTTP Json \u4e09\u79cd\u901a\u4fe1\u65b9\u5f0f<br \/>\n\u4e00\u822c\u4f7f\u7528 WebSocket \u505a\u5f02\u6b65push\/pull\uff0c \u4f7f\u7528HTTP\u505a\u540c\u6b65push\/pull<\/p>\n<p>\u82e5\u540c\u65f6\u4f7f\u7528\u591a\u79cd\u683c\u5f0fJSON\/BINARY\uff0c\u9700\u8981\u6ce8\u610f\u6d88\u606f\u4f53\uff08body\uff09\u662f\u5426\u53ef\u4ee5\u901a\u8fc7UTF8\u7f16\u7801\u4e8e\u4e8c\u8fdb\u5236\u4e0e\u5b57\u7b26\u4e32\u4e4b\u95f4\u76f8\u4e92\u8f6c\u5316\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e71\u7801\u60c5\u51b5\u3002\u7406\u8bba\u4e0a\u540c\u4e00\u961f\u5217\u5e94\u5c3d\u91cf\u4fdd\u6301\u4f7f\u7528\u540c\u4e00\u79cd\u683c\u5f0f\u4f20\u8f93\u3002<\/p>\n<p>\u672c\u670d\u52a1\u4e3aFIFO\u3000QUEUE\uff0c\u6d88\u606f\u5c06\u4fdd\u6301\u987a\u5e8fPULL\uff0c\u5728\u5355\u7ebf\u7a0b\u6d88\u8d39\u4e0b\u6d88\u606f\u4e0e\u4e1a\u52a1\u5747\u4fdd\u6301\u987a\u5e8f\u6027\u3002\u5728\u591a\u7ec8\u7aef\u6216\u591a\u7ebf\u7a0b\u6216\u591aPULL\u4e0b\u3001\u6d88\u606f\u4fdd\u6301\u987a\u5e8fPULl\u4f46\u4e0d\u4fdd\u8bc1\u4e1a\u52a1\u6267\u884c\u7684\u987a\u5e8f\u6027\u3002<\/p>\n<p>\u672c\u670d\u52a1\u652f\u6301\u547d\u4ee4\uff1a<\/p>\n<table style=\"width: 660px;\">\n<tbody>\n<tr>\n<td style=\"width: 110.817px;\">rpush<\/td>\n<td style=\"width: 517.183px;\">\u961f\u5217\u53f3\u4fa7\u63d2\u5165\u4e00\u9879<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">lpush<\/td>\n<td style=\"width: 517.183px;\">\u961f\u5217\u5de6\u4fa7\u63d2\u5165\u4e00\u9879<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">pull<\/td>\n<td style=\"width: 517.183px;\">\u4ece\u961f\u5217\u4e2d\u83b7\u53d6\u6700\u5de6\u4fa7\u4e00\u9879<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">delete<\/td>\n<td style=\"width: 517.183px;\">\u5220\u9664\u5df2\u4ece\u961f\u5217\u4e2dpull\u8fc7\u7684\u9879\uff0c\u672a\u88abpull\u8fc7\u7684\u9879\u4e0d\u53ef\u88ab\u5220\u9664<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">lcancel<\/td>\n<td style=\"width: 517.183px;\">\u6062\u590d\u5df2pull\u8fc7\u7684\u9879\u81f3\u961f\u5217\u5de6\u4fa7<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">rcancel<\/td>\n<td style=\"width: 517.183px;\">\u6062\u590d\u5df2pull\u8fc7\u7684\u9879\u81f3\u961f\u5217\u53f3\u4fa7<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">count<\/td>\n<td style=\"width: 517.183px;\">\u67e5\u8be2\u961f\u5217\u957f\u5ea6<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 110.817px;\">clear<\/td>\n<td style=\"width: 517.183px;\">\u6e05\u7a7a\u961f\u5217\u9879<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>2. JSON\u683c\u5f0f<\/h3>\n<p>\u5b57\u7b26\u7f16\u7801\u683c\u5f0f\uff1a UTF8<\/p>\n<pre>\/\/push request:\r\n{\r\n \"action\":\"lpush\/rpush\",\r\n \"requestid\":\"1 ~ 32 chr.  propose use uuid\",\r\n \"queue\": \"\/order\/new\",\r\n \"body\":\"this is a test message.\"\r\n}\r\n\r\n\/\/push response:\r\n{\r\n \"action\":\"lpush\/rpush\",\r\n \"requestid\":\"88bea088837d4743af67a2d49e6d08d1\",\r\n \"queue\": \"\/order\/new\",\r\n \"result\":\"ok or failure message\",\r\n \"messageid\": 1452443242\r\n}\r\n\r\n\/\/delete\/lcancel\/rcancel\/createqueue\/deletequeue\/count\/clear\/pull request:\r\n{\r\n \"action\":\"delete\/lcancel\/rcancel\/createqueue\/deletequeue\/count\/clear\/pull\",\r\n \"requestid\":\"1 ~ 32 chr.  propose use uuid\",\r\n \"queue\": \"\/order\/new\"\r\n}\r\n\r\n\/\/delete\/lcancel\/rcancel\/createqueue\/deletequeue response:\r\n{\r\n  \"action\":\"delete\/lcancel\/rcancel\/createqueue\/deletequeue\",\r\n  \"requestid\":\"88bea088837d4743af67a2d49e6d08d1\",\r\n  \"queue\": \"\/order\/new\",\r\n  \"result\":\"ok or failure message\"\r\n}\r\n\r\n\/\/count\/clear response:\r\n{\r\n  \"action\":\"count\/clear\",\r\n  \"requestid\":\"88bea088837d4743af67a2d49e6d08d1\",\r\n  \"queue\": \"\/order\/new\",\r\n  \"result\":\"ok or failure message\",\r\n  \"count\":0\r\n}\r\n\r\n\/\/pull response:\r\n{\r\n\t\"action\":\"pull\",\r\n\t\"requestid\":\"88bea088837d4743af67a2d49e6d08d1\",\r\n\t\"queue\": \"\/order\/new\",\r\n\t\"result\":\"ok or failure message\",\r\n\t\"body\":\"message body.\",\r\n\t\"duplications\": 0,\r\n\t\"messageid\": 1452443242\r\n}\r\n\r\n<\/pre>\n<h3>2. \u4e8c\u8fdb\u5236\u4f20\u8f93\u683c\u5f0f<\/h3>\n<p>Endianness : Big-Endian<br \/>\nBody: UTF8<\/p>\n<p>\u4e8c\u8fdb\u5236\u5143\u7d20\u5185\u5bb9\u4e0eJSON\u7ed3\u6784\u4e00\u81f4\u3002<\/p>\n<pre>\/\/type:\r\naction\t\t: byte\r\nxx length\t: uint16 \r\nduplications: uint16\r\ncount\t\t: int32\r\nmessageid\t: uint64\r\n\r\n\r\n\/\/push request:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tbody length (2)\r\n+---------------------------------------------------------------+\r\n|\tbody (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n\r\n\/\/push response:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tresult length (2)\r\n+---------------------------------------------------------------+\r\n|\tresult (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n| OK | messageid length (8)\r\n+---------------------------------------------------------------+\r\n\r\n\r\n\/\/delete\/lcancel\/rcancel\/createqueue\/deletequeue\/count\/clear\/pull request:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n\r\n\/\/delete\/lcancel\/rcancel\/createqueue\/deletequeue response:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tresult length (2)\r\n+---------------------------------------------------------------+\r\n|\tresult (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n\r\n\/\/count\/clear response:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tresult length (2)\r\n+---------------------------------------------------------------+\r\n|\tresult (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n| OK | count (4)\r\n+---------------------------------------------------------------+\r\n\r\n\/\/pull response:\r\n+---------------------------------------------------------------+\r\n|\taction (1)\r\n+---------------------------------------------------------------+\r\n|\tid length (2)\r\n+---------------------------------------------------------------+\r\n|\tid  (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tqueue length (2)\r\n+---------------------------------------------------------------+\r\n|\tqueue (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\tresult length (2)\r\n+---------------------------------------------------------------+\r\n|\tresult (1 ~ 65535)\r\n+---------------------------------------------------------------+\r\n|\t | body length (2)\r\n+    -----------------------------------------------------------+\r\n|\t | body (1 ~ 65535)\r\n+ OK -----------------------------------------------------------+\r\n|    | duplications (2)\r\n+    -----------------------------------------------------------+\r\n|    | messageid (8)\r\n+---------------------------------------------------------------+\r\n\r\n\r\n<\/pre>\n<h3>3. HTTP \u8bf7\u6c42<\/h3>\n<p>\u5b57\u7b26\u7f16\u7801\uff1a UTF8<br \/>\n\u5143\u7d20\u4e0eJSON\u7ed3\u6784\u4e00\u81f4,\u4f46\u5728\u8bf7\u6c42\u65f6\u9664rpush\/lpush\u65f6\u7684body\u4ee5\u5916\uff0c\u5176\u5b83\u6240\u6709\u5143\u7d20\u5747\u4ee5Queue String\u65b9\u5f0f\u8fdb\u884c\u4f20\u9012\u3002<br \/>\n\u8fd4\u56de\u7ed3\u679c\u4e0e\u540cJSON\u7ed3\u6784<br \/>\n\u4ee5.json\u540e\u7f00\u7684\u63a5\u53e3\uff0c\u8fd4\u56deJSON<br \/>\n\u4ee5.bin \u540e\u7f00\u7684\u63a5\u53e3\uff0c\u8fd4\u56de\u4e8c\u8fdb\u5236\u6570\u636e<\/p>\n<table style=\"width: 660px;\">\n<tbody>\n<tr>\n<td style=\"width: 338.233px;\"><strong>PATH<\/strong><\/td>\n<td style=\"width: 60px;\"><strong>METHOD<\/strong><\/td>\n<td style=\"width: 215.767px;\"><strong>REMARKS<\/strong><\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/rpush.json?queue=&amp;requestid=<br \/>\n\/queue\/rpush.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">POST<\/td>\n<td style=\"width: 215.767px;\">application\/octet-stream<br \/>\n\u5185\u5bb9\u4e3a\u6d88\u606f\u5b9e\u4f53BODY<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/lpush.json?queue=&amp;requestid=<br \/>\n\/queue\/lpush.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">POST<\/td>\n<td style=\"width: 215.767px;\">application\/octet-stream<br \/>\n\u5185\u5bb9\u4e3a\u6d88\u606f\u5b9e\u4f53BODY<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/pull.json?queue=&amp;requestid=<br \/>\n\/queue\/pull.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u62c9\u53d6\u4e00\u4e2a\u6d88\u606f<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/delete.json?queue=&amp;requestid=<br \/>\n\/queue\/delete.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u5220\u9664\u4e00\u4e2a\u5df2\u62c9\u53d6\u6d88\u606f<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/lcancel.json?queue=&amp;requestid=<br \/>\n\/queue\/lcancel.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u6062\u590d\u4e00\u4e2a\u5df2\u62c9\u53d6\u6d88\u606f\u81f3\u961f\u5217\u5de6\u4fa7<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/rcancel.json?queue=&amp;requestid=<br \/>\n\/queue\/rcancel.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u6062\u590d\u4e00\u4e2a\u5df2\u62c9\u53d6\u6d88\u606f\u81f3\u961f\u5217\u53f3\u4fa7<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/count.json?queue=&amp;requestid=<br \/>\n\/queue\/count.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u83b7\u53d6\u4e00\u4e2a\u961f\u5217\u5143\u7d20\u6570<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 338.233px;\">\/queue\/clear.json?queue=&amp;requestid=<br \/>\n\/queue\/clear.bin?queue=&amp;requestid=<\/td>\n<td style=\"width: 60px;\">GET<\/td>\n<td style=\"width: 215.767px;\">\u6e05\u7a7a\u4e00\u4e2a\u961f\u5217\u5143\u7d20<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>4. Websocket<\/h3>\n<p>Binary ws:\/\/{host}:{port}\/queue\/bin<br \/>\nJson\u00a0 ws:\/\/{host}:{port}\/queue\/json<\/p>\n<p>\u540c\u4e00\u4e2aws\u8fde\u63a5\u5141\u8bb8\u540c\u65f6\u591a\u4e2aPULL\u8bf7\u6c42\u3002<\/p>\n<h3>5. RequestID \u63cf\u8ff0<\/h3>\n<p>\u534f\u8bae\u4e2d RequestID \u4e3a\u8bf7\u6c42\u6807\u8bc6\uff0c\u4e0d\u505a\u4e3a\u6d88\u606f\u6807\u8bc6\uff0c\u8be5\u6807\u8bc6\u7531\u4f7f\u7528\u8005\u81ea\u884c\u751f\u6210\uff0c\u53ef\u4ee5\u662f1-32\u4f4d\u5b57\u7b26\uff0c\u9664PULL\u4ee5\u5916\u7684\u5176\u5b83\u6240\u6709\u547d\u4ee4\u5747\u5141\u8bb8\u8be5\u4f53\u91cd\u590d\u3002<\/p>\n<p>\u5728PULL\u65f6\u82e5\u4f7f\u7528websocket\u5219\u5fc5\u9700\u4fdd\u8bc1\u540c\u4e00\u8fde\u63a5\u4e2d\u4e0d\u91cd\u590d\uff0c\u5e38\u5728\u540c\u4e00\u8fde\u63a5\u4e2d\u4f7f\u7528\u9012\u589e\u6570\u505a\u4e3a\u6807\u8bc6\u3002\u82e5\u4f7f\u7528http\u5219\u9700\u4fdd\u8bc1http\u5168\u5c40\u4e0d\u91cd\u590d\u3002 \u4e0d\u80fd\u91cd\u590d\u662f\u56e0\u4e3aPULL\u7684\u6807\u8bc6\u9700\u5728\u8981delete\/lcancel\/rcancel\u65f6\u505a\u4e3a\u8bc6\u522b\u6807\u8bc6\u4f7f\u7528\u3002<\/p>\n<h3>6. Action \u63cf\u8ff0<\/h3>\n<p>\u7f16\u7801\u5982\u4e0b<\/p>\n<pre>const byte LPUSH = 1;\r\nconst byte RPUSH = 2;\r\nconst byte DELETE = 3;\r\nconst byte PULL = 4;\r\nconst byte CLEAR = 5;\r\nconst byte COUNT = 6;\r\nconst byte LCANCEL = 7;\r\nconst byte RCANCEL = 8;\r\nconst byte CREATEQUEUE = 9;\r\nconst byte DELETEQUEUE = 10;\r\nconst string OK = \"ok\";<\/pre>\n<h3>7. \u6d88\u606f\u4e8b\u52a1\u6a21\u5f0f<\/h3>\n<p>\u672c\u670d\u52a1\u539f\u751f\u652f\u6301\u4e8b\u52a1\u6a21\u5f0f\uff0c \u4e0d\u652f\u6301\u975e\u4e8b\u52a1\u6a21\u5f0f\u7684\u6d88\u606f\u6d88\u8d39\uff0c\u6240\u6709\u6d88\u606f\u5728\u6d88\u8d39\u540e\u5fc5\u9700\u901a\u8fc7delete\u547d\u4ee4\u5220\u9664\uff1b<br \/>\n\u82e5\u7ec8\u7aef\u5728\u5904\u7406\u4e1a\u52a1\u65f6\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5931\u8d25\u7684\u4e1a\u52a1\u6d88\u8d39\u53ef\u4ee5\u901a\u8fc7lcancel\/rcancel\u5c06\u6d88\u606f\u9000\u56de\u81f3\u961f\u5217\u7684\u5de6\u4fa7\u6216\u53f3\u4fa7\uff1b<br \/>\n\u9762\u5411\u8fde\u63a5\u4f7f\u7528\u65b9\u5f0f\uff0c\u82e5\u4e0d\u8fdb\u884cdelete\u64cd\u4f5c\uff0c\u5219\u5728\u8fde\u63a5\u65ad\u5f00\u540e\u5c06\u81ea\u52a8\u6062\u590d\u81f3\u961f\u5217\u5de6\u4fa7\uff1b<br \/>\n\u6d88\u606f\u6bcf\u88ab\u9000\u56de\u540e\u518d\u6b21PULL\u4e00\u6b21\u5219duplications\u5c06\u4e3a\u9012\u589e1\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u8be5\u503c\u6765\u5224\u65ad\u8be5\u6d88\u606f\u662f\u5426\u4e3a\u88ab\u521d\u6b21\u6d88\u8d39\uff0c\u82e5\u4e0d\u662f\u88ab\u521d\u6b21\u6d88\u8d39\u5219\u5e94\u68c0\u67e5\u91cd\u590d\u6d88\u8d39\u6240\u5bfc\u81f4\u7684\u810f\u6570\u636e\u6216\u91cd\u590d\u6570\u636e\uff0c\u5982\uff1a\u4e0d\u5e94\u4ea7\u751f\u4e24\u6b21\u76f8\u540c\u7684\u8ba2\u5355\u6216\u6263\u6b3e\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u7b80\u8981\u4ecb\u7ecdAdf.QueueServer\u7684\u4e00\u4e9b\u5e38\u89c4\u5e94\u7528\u548c\u534f\u8bae\u3002 1. \u534f\u8bae\u63cf\u8ff0 &hellip; <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/805\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[274],"tags":[308,307],"class_list":["post-805","post","type-post","status-publish","format-standard","hentry","category-adf","tag-adf-queueserver","tag-queue"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=805"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/805\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}