{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcordea.hatenadiary.com%2Fentry%2F2016%2F02%2F24%2F084402\" title=\"Kotlin + OkHttp3 + Retrofit2 \u3067\u30d8\u30c3\u30c0\u306e\u8ffd\u52a0\u3068\u304b - CORDEA blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Android","Kotlin"],"published":"2016-02-24 08:44:02","author_url":"https://blog.hatena.ne.jp/CORDEA/","blog_url":"https://cordea.hatenadiary.com/","type":"rich","title":"Kotlin + OkHttp3 + Retrofit2 \u3067\u30d8\u30c3\u30c0\u306e\u8ffd\u52a0\u3068\u304b","version":"1.0","description":"Kotlin \u3067\u30a2\u30d7\u30ea\u66f8\u3044\u3066\u308b\u6642\u306b\u3061\u3087\u3063\u3068\u6238\u60d1\u3063\u305f OkHttpClient \u306e\u30d8\u30c3\u30c0\u30fc\u306e\u8ffd\u52a0\u306f val httpClient = OkHttpClient.Builder() .addInterceptor { it.proceed(it.request() .newBuilder() .addHeader(\"Content-Type\", \"application/json\") .build()) } .build() \u3053\u308c\u3092 Retrofit \u3067\u4f7f\u7528\u3059\u308b\u5834\u5408 Retrofit.Builder() .baseUrl { HttpUrl.parse(url) } .client(httpCli\u2026","height":"190","blog_title":"CORDEA blog","provider_url":"https://hatena.blog","url":"https://cordea.hatenadiary.com/entry/2016/02/24/084402","width":"100%","provider_name":"Hatena Blog","author_name":"CORDEA","image_url":null}