https://kotlinlang.org logo
#ktor
Title
# ktor
n

Nikolay Kasyanov

02/02/2022, 10:28 AM
hey folks, does ktor provide some client-side compression out of the box? KTOR-1199 makes me think it does not 😞
d

Dominaezzz

02/02/2022, 10:43 AM
Yes but not on kotlin native.
a

Aleksei Tirman [JB]

02/02/2022, 12:38 PM
You can use the
ContentEncoding
plugin for decompressing a response body. To compress a request body you can use the GZIPOutputStream.
n

Nikolay Kasyanov

02/02/2022, 1:08 PM
@Aleksei Tirman [JB] thanks for chiming in. Unfortunately (for this specific case) we do multiplatform so we’d have to implement it ourselves 🤔
a

Aleksei Tirman [JB]

02/02/2022, 2:23 PM
That's sad.
😢 1
6 Views