melatonina
03/05/2020, 12:00 PMcall.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
call.respondFile(uncompressedFilePath.toFile()) {
setProperty(AttributeKey("Content-Type"), ContentType("audio", "raw"))
}
the correct way to do this?