https://kotlinlang.org logo
#kotlin-fuel
Title
# kotlin-fuel
n

Nikky

02/02/2020, 5:34 PM
i ended up using ktor-client recently since i was doing multiplatform stuff just wish the thing had a nicer API like fuel, also websockets are slightly confusing
m

Marcin Wisniowski

06/16/2020, 10:35 PM
I only need one network request in a server that otherwise is full ktor, so I wanted to use ktor-client just to keep it 100% ktor. Had to move to Fuel just for the one request because ktor-client doesn't let you specify the POST request body encoding...
n

Nikky

06/16/2020, 10:52 PM
what kind of specific encoding do you need the body to be ?
in ktor this should work
Copy code
body = object: ByteArrayContent {
    override val contentLength = TODO()
    override fun bytes() = TODO()
}
and then set whatever header for the encoding
m

Marcin Wisniowski

06/16/2020, 11:01 PM
This is the issue I raised.
3 Views