Marcel Bochtler
val fileChannel: ByteReadChannel = client.get("<https://example.com/bigfile.bin>").body() call.response.header( HttpHeaders.ContentDisposition, ContentDisposition.Attachment.withParameter( ContentDisposition.Parameters.FileName, fileName ).toString() ) call.respond(fileChannel)
byte[]
ByteReadChannel
Aleksei Tirman [JB]
get
client.prepareGet("<https://example.com/bigfile.bin>").execute { response -> call.respond(response.bodyAsChannel()) }
A modern programming language that makes developers happier.