Decoder

fun Decoder(format: SerialFormat, vararg mediaTypes: MediaType): BodyAdapter.Decoder

Creates a decoder that uses the given SerialFormat for decoding objects and is compatible with the given media types.

Throws

if the given SerialFormat is neither a StringFormat nor a BinaryFormat