{"id":268841,"date":"2021-01-09T17:20:30","date_gmt":"2021-01-09T09:20:30","guid":{"rendered":"http:\/\/4563.org\/?p=268841"},"modified":"2021-01-09T17:20:30","modified_gmt":"2021-01-09T09:20:30","slug":"%e9%97%ae%e4%b8%80%e4%b8%aa%e5%85%b3%e4%ba%8e-kotlin-%e5%8d%8f%e7%a8%8b-lifecyclescope-%e7%94%a8%e6%b3%95%e5%92%8c%e5%86%85%e5%ad%98%e6%b3%84%e6%bc%8f%e7%9a%84%e9%97%ae%e9%a2%98%e3%80%82","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=268841","title":{"rendered":"\u95ee\u4e00\u4e2a\u5173\u4e8e kotlin \u534f\u7a0b lifecycleScope \u7528\u6cd5\u548c\u5185\u5b58\u6cc4\u6f0f\u7684\u95ee\u9898\u3002"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u95ee\u4e00\u4e2a\u5173\u4e8e kotlin \u534f\u7a0b lifecycleScope \u7528\u6cd5\u548c\u5185\u5b58\u6cc4\u6f0f\u7684\u95ee\u9898\u3002               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5728\u968f\u4fbf\u4e00\u4e2a Activity \u4e0a\u542f\u52a8\u6b64 Activity\uff0c\u7136\u540e\u8fc5\u901f\u5173\u95ed\uff0cleakcanary \u5c31\u4f1a\u62a5\u5185\u5b58\u6cc4\u6f0f\u3002\u5f15\u7528\u94fe\u5305\u62ec\u4e86\u4f20\u5165\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570 lambda \u5bf9\u8c61\u548c Okhttpclient\uff0c\u8fd9\u91cc\u6cc4\u6f0f\u7684\u539f\u56e0\u662f\u4ec0\u4e48\u5462\uff1f \u4e00\u822c retrofit \u6216\u8005 okhttpclient \u5bf9\u8c61\u5168\u5c40\u53ea\u9700\u8981\u4e00\u4e2a\u5c31\u884c\u4e86\u5427\uff0c \u5982\u679c\u8fd8\u662f\u9700\u8981\u4f20\u53c2\u548c\u4f20\u56de\u8c03\u7684\u65b9\u5f0f\u8bbf\u95ee\u7f51\u7edc\uff0c\u8be5\u5982\u4f55\u6b63\u786e\u4fee\u6539\u4e0b\u9762\u7684\u4ee3\u7801\u5462\uff1f<\/p>\n<pre><code>class TestActivity:AppCompatActivity() {      override fun onCreate(savedInstanceState: Bundle?) {         super.onCreate(savedInstanceState)         setContentView(R.layout.activity_test)         requestBylifecycleCoroutine(\"https:\/\/www.baidu1.com\/\"){             Log.w(\"TestActivityTAG\",\"result:\"+it)         }     }      val client = OkHttpClient.Builder().build()     fun requestBylifecycleCoroutine(url: String, callBack: (s: String) -&gt; Unit) {         lifecycleScope.launch {             val result = withContext(Dispatchers.IO) {                 suspendCoroutine&lt;String&gt; { continuation -&gt;                     val request = Request.Builder().url(url).build()                     val newCall = client.newCall(request)                     newCall.enqueue(object : Callback {                         override fun onFailure(call: Call, e: IOException) {                             continuation.resume(\"fail\")                         }                         override fun onResponse(call: Call, response: Response) {                             continuation.resume(\"success\")                         }                     })                 }             }             callBack(result)         }     } } <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>19<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4878958\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lianyue13 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u534f\u7a0b\u53d6\u6d88\u7684\u65f6\u5019\uff0c\u8bf7\u6c42\u6ca1\u53d6\u6d88\u5427\u3002\u7528 suspendCancellableCoroutine\uff0c\u5728 cancel \u91cc\u628a\u8bf7\u6c42\u53d6\u6d88\u8bd5\u8bd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878959\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lianyue13 \u6211\u6362\u4e86 suspendCancellableCoroutine, \u4e5f\u5728 invokeOnCancellation \u6dfb\u52a0\u4e86 call.cancel(). \u548c\u4e4b\u524d\u4e00\u6837,leakcanary \u8fd8\u662f\u4f1a\u6709 x retained objects,tap to dump heap\uff0c\u4e0d\u8fc7\u5f88\u5feb\u901a\u77e5\u5c31\u53d8\u6210\u4e86 All retained objects were garbage collected . \u8fd9\u6837\u662f\u4e3a\u4ec0\u5462\uff0c\u6211\u8fd8\u9700\u8981\u62c5\u5fc3\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878960\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : k10ndike <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 OKHttpClient \u5bf9\u8c61\u662f Activity \u6301\u6709\u7684\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878961\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hlayk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u5728 viewmodel \u4e2d\u4f7f\u7528\u5bf9\u5e94\u7684 viewModelScope \u90a3\u4e48\u643a\u7a0b launch \u8fd4\u56de\u7684 job \u4f1a\u7531 viewmodel \u7684 onCleared \u7edf\u4e00\u81ea\u52a8 cancel<br \/>\u4f60\u5728 activity \u4e2d\u8fd9\u6837\u4f7f\u7528 lifecycleScope \u53ef\u4ee5\u5728 onDestory() \u5c06 lifecycleScope.launch {} \u8fd4\u56de\u7684\u5bf9\u8c61 job \u4e3b\u52a8\u53d6\u6d88\u4e0b<\/p>\n<p>[Easy Coroutines in Android: viewModelScope]( https:\/\/medium.com\/androiddevelopers\/easy-coroutines-in-android-viewmodelscope-25bffb605471)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878962\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @k10ndike OKHttpClient \u5bf9\u8c61\u5c31\u7b97\u5199\u5728\u5176\u4ed6\u7c7b\u4e2d\uff0c\u540c\u6837\u662f\u5355\u4f8b\u7684\u8bdd\uff0c \u4e5f\u4f1a\u95f4\u63a5\u6301\u6709\u5230 activity                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878963\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hlayk \u5982\u679c\u8fd8\u9700\u8981\u8003\u8651 onDestory\uff0c\u90a3\u4e48 lifecycleScope \u5c31\u4e0d\u7528\u53eb lifefcycleScope \u4e86\u3002\u5b9e\u9645\u4e0a lifefcycleScope \u4e5f\u786e\u5b9e\u81ea\u52a8 cancel \u4e86\uff0c\u6700\u7ec8\u7684 callBack \u6ca1\u6709\u6267\u884c\u3002\u4f46\u662f\u7f51\u7edc\u8bf7\u6c42\u4e0d\u4e00\u5b9a\u80fd\u6210\u529f cancel\uff0c\u800c\u4e14\u56de\u8c03\u65f6\u95f4\u8f83\u957f\uff0cleakcanary \u4e0d\u77e5\u4e3a\u4ec0\u4e48\u663e\u793a\u5f15\u7528\u5230\u4e86 activity \u3002 \u5982\u679c\u66ff\u6362\u4e3a viewModelScope \u4e5f\u6709\u6548\uff0c\u6709\u65f6\u5019\u4e00\u4e2a\u9875\u9762\u5c31\u4e00\u4e2a\u7f51\u7edc\u8bf7\u6c42\u61d2\u5f97\u518d\u5199\u4e00\u4e2a\u7c7b\u76f4\u63a5\u5728 activity \u4e2d\u8bf7\u6c42\u7f51\u7edc\uff0c\u8fd9\u6837\u8c8c\u4f3c \u65e0\u89e3\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878964\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : k10ndike <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 \u5443\uff0cActivity \u600e\u4e48\u95f4\u63a5\u6301\u6709\u5230\u7684\uff1f\u6709\u6d4b\u8bd5\u8fc7\u5417\uff0c\u521b\u5efa\u4e00\u4e2a\u7c7b\u91cc\u9762\u5c31\u4e00\u4e2a\u9759\u6001\u7684 OkHttpClient \u5b9e\u4f8b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878965\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vanxy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u8fd9\u4e2a\u7b49\u4e8e\u7528\u4e86\u4e00\u534a\u7684\u534f\u7a0b\uff0c\u7528\u9519\u4e86<br \/>\u5e94\u8be5\u540c\u6b65\u5730\u5728\u534f\u7a0b\u91cc\u8c03\u7528 okhttp\uff0c\u800c\u4e0d\u662f\u901a\u8fc7\u56de\u8c03 callback \u7684\u65b9\u5f0f<\/p>\n<p>\u76f4\u63a5 newCall.execute() \u62ff\u5230 response                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878966\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vanxy \u540c\u6b65\u7684\u6211\u8bd5\u4e86\uff0c\u8fd8\u662f\u4e00\u6837\u3002\u540c\u6b65\u7684\u8bdd\u53ea\u662f\u81ea\u52a8\u53d6\u6d88\u534f\u7a0b\uff0c\u4f46\u662f call.execute()\u65b9\u6cd5\u5f00\u59cb\u6267\u884c\u540e\u5e76\u4e0d\u4f1a\u7acb\u5373\u53d6\u6d88\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878967\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @k10ndike \u6d4b\u8bd5\u8fc7, static \u7684 OkHttpClient \u6700\u7ec8\u4f1a\u901a\u8fc7 activity \u4e2d\u4f20\u5165\u7684 lambda \u56de\u8c03,\u5f15\u7528\u5230 activity                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878968\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vanxy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 \u4f60\u9700\u8981\u5728 execute \u5916\u9762\u5305\u4e00\u4e2a withContext,\u8fd9\u6837\u5f53 activity finish \u4e86\uff0c\u5c31\u4e0d\u4f1a\u6267\u884c\u63a5\u4e0b\u6765\u7684\u4ee3\u7801\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878969\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sankemao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u89c9\u5f97\u5e94\u8be5\u662f callback \u6301\u6709\u4e86 activity \u7684\u5f15\u7528\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u628a\u7ed3\u679c\u4f20\u7ed9 livedata                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878970\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vanxy \u662f\u7684\uff0c\u6211\u6709\u7528 withContext. \u65e0\u8bba\u662f execute \u8fd8\u662f enqueue ,activity finish \u540e\u4f20\u7684 callback \u4e0d\u4f1a\u6267\u884c\uff0c\u4f46\u662f okhttp \u7684 call \u8fd8\u662f\u4f1a\u6267\u884c\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878971\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sankemao liveData \u4e00\u822c\u914d\u5408 viewmodel \u7528\u5427\uff0c\u96be\u9053\u975e\u5f97 mvp \u6216\u8005 mvvm \u628a activity \u5b8c\u5168\u9694\u5f00\u624d\u884c\u5417\u3002\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878972\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sankemao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 \u4f60\u53ef\u4ee5\u5728 ac \u91cc\u9762\u7528 livedata \u9a8c\u8bc1\u4e0b\u662f\u5426\u8fd8\u6709\u6cc4\u6f0f\u3002\u4f60\u4e5f\u53ef\u4ee5\u7528\u5176\u4ed6\u529e\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878973\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vanxy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 #13 \u90a3\u662f\u81ea\u7136\u5730\u5440\uff0ccall \u662f\u4e00\u6574\u6bb5\u7684\u963b\u585e\u5f0f\u8c03\u7528\u3002 \u4e0d\u6b62\u662f\u534f\u7a0b\uff0c \u5b9e\u9645\u4e0a\u6ca1\u6709\u4efb\u4f55\u65b9\u5f0f\u53ef\u4ee5\u53d6\u6d88\u5b83\uff08\u9664\u975e\u5f3a\u5236\u505c\u6b62\u7ebf\u7a0b\uff09\uff0c\u534f\u7a0b\u53ea\u662f\u53ef\u4ee5\u5e2e\u4f60\u5728\u53d6\u6d88 withContext \u4e4b\u540e\u7684\u6240\u6709\u4ee3\u7801\u6267\u884c\u3002 <\/p>\n<p>\u56e0\u4e3a\u4e0d\u6267\u884c\u63a5\u4e0b\u6765\u7684 callback \u4e86\uff0c \u6240\u4ee5 activity \u4e5f\u4e0d\u4f1a\u5185\u5b58\u6cc4\u9732\u4e86\u3002 \u4e5f\u4e0d\u9700\u8981\u5173\u5fc3 execute \u662f\u5426\u6267\u884c\u5b8c\u6210                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878974\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : m30102 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vanxy \u6211\u53cd\u7f16\u8bd1\u4e86\u534a\u5929\u5bf9\u6bd4\u4e86\u4e0b\u627e\u5230\u539f\u56e0\u4e86\uff0c \u662f okhttpclient \u7684\u539f\u56e0\uff0cactivity \u867d\u7136\u6267\u884c destory \u4e86\uff0c\u4f46\u662f okhttpclient \u8fd8\u5728\u6267\u884c call,\u6240\u4ee5\u5ef6\u957f\u4e86 activity \u751f\u547d\uff0c\u62a5\u6cc4\u6f0f\u3002\u5982\u679c\u628a okhttpclient \u5199\u5728\u5176\u4ed6\u7c7b\u4e2d\u58f0\u660e static\uff0c \u90a3\u4e48 activity \u4e2d\u8c03\u7528\u534f\u7a0b\u65b9\u6cd5\u4f20\u7684 callBack \u5fc5\u987b\u4e0d\u80fd\u5f15\u7528 activity \u4efb\u4f55\u6210\u5458\u53d8\u91cf\u6216\u8005 view \u7b49\uff0c\u4e0d\u7136\u8fd8\u662f\u4f1a\u88ab\u5ef6\u957f\u751f\u547d\uff0c\u4e00\u822c\u4f20\u56de\u8c03\u5c31\u662f\u4e3a\u4e86\u6539\u53d8 view \u7b49\uff0c\u6240\u4ee5\u8fd9\u4e2a\u662f\u65e0\u89e3\u7684\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878975\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vanxy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 #17 <br \/>\u54e6\u54e6\uff0c \u56e0\u4e3a kotlin \u7684 lambda \u6301\u6709\u4e86 activity \u7684\u5f15\u7528\u3002<\/p>\n<p>\u6240\u4ee5\u8981\u628a\u6267\u884c\u7684\u653e\u5230 viewmodel \u6216\u8005 presenter \u91cc\uff0cactivity \u89e3\u9664\u4e0e viewmodel \u6216\u8005 presenter \u4e4b\u95f4\u7684\u5f15\u7528\u4e4b\u540e\uff0c \u5c31\u4e0d\u4f1a\u9020\u6210\u6cc4\u9732\u4e86                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4878976\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : k10ndike <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @m30102 \u4f60\u672c\u5730\u7684\u4ee3\u7801\u5e94\u8be5\u6709\u5176\u4ed6\u64cd\u4f5c\u5427\uff0c\u5e16\u5b50\u91cc\u90a3\u6837\u6253 Log \u5e94\u8be5\u4e0d\u4f1a\u6cc4\u9732\u3002\u53ef\u4ee5\u5728\u8bf7\u6c42 callback \u91cc\u8c03\u7528 livedata\uff0c\u5c31\u4e0d\u7528\u5904\u7406\u751f\u547d\u5468\u671f\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u4e00\u4e2a\u5173\u4e8e kotlin \u534f\u7a0b l&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/268841"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=268841"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/268841\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=268841"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=268841"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=268841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}