Thread
#kotlin-fuel
    Nikky

    Nikky

    2 years ago
    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
    Marcin Wisniowski

    Marcin Wisniowski

    2 years ago
    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...
    Nikky

    Nikky

    2 years ago
    what kind of specific encoding do you need the body to be ?
    in ktor this should work
    body = object: ByteArrayContent {
        override val contentLength = TODO()
        override fun bytes() = TODO()
    }
    and then set whatever header for the encoding
    Marcin Wisniowski

    Marcin Wisniowski

    2 years ago
    This is the issue I raised.