sargunv
06/20/2016, 10:08 PMval client = OkHttpClient()
val request = Request.Builder()
.get()
.url(MockServer.url)
.build()
val call = client.newCall(request)
val response = call.execute()
val body = response.body()
val content = body.string()
or this?
val content = OkHttpClient()
.newCall(Request.Builder()
.get()
.url(MockServer.url)
.build())
.execute()
.body()
.string()