http://ktor.io/clients/http-client.html#HttpResponse
These three methods are documented but don't seem to be present anywhere:
val readChannel = response.receive<ByteReadChannel>()
val multiPart = response.receive<MultiPartData>()
val inputStream = response.receive<InputStream>()
It seems that the documentation was wrong. (I have updated it). The receive method is part of the call.
So you can call response.call.receive instead.
Fixed in master
Most helpful comment
It seems that the documentation was wrong. (I have updated it). The receive method is part of the call.
So you can call
response.call.receiveinstead.