How can I use gzip for ktor-client POST requests (...
# ktor
a
How can I use gzip for ktor-client POST requests (not response)? ktolin 1.4.10, ktor 1.4.1, native/curl I’ve added
Copy code
ContentEncoding {
            gzip()
        }
But the server team says that request body not in gzip.
a
You can use
ContentEncoding
feature only for decoding received response. To solve your problem you can manually compress POST body and send it.
a
It not usable for native 😞
a
I've created a feature request.
a
Thank you!
353 Views