Ktor: HttpResponse.receive method documented but missing

Created on 17 May 2018  路  2Comments  路  Source: ktorio/ktor

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>()
bug

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.receive instead.

All 2 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ribesg picture Ribesg  路  3Comments

baruchn picture baruchn  路  3Comments

diaodou picture diaodou  路  3Comments

seanf picture seanf  路  3Comments

lamba92 picture lamba92  路  3Comments