Hello. I'm trying to use `call.respondFile()` to s...
# ktor
m
Hello. I'm trying to use
call.respondFile()
to send a raw audio file. I'd like to set the mime type to "audio/raw". I attempted to use the
configure
block on
OutgoingContent
, but
contentType
is read-only.
OutgoingContent
seems to only have read-only attributes. How am I supposed to use the
configure
block? Is
Copy code
call.respondFile(uncompressedFilePath.toFile()) {
    setProperty(AttributeKey("Content-Type"), ContentType("audio", "raw"))
}
the correct way to do this?