Companion

object Companion

Functions

Link copied to clipboard
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.

Link copied to clipboard
fun Encoder(format: SerialFormat, vararg mediaTypes: MediaType): BodyAdapter.Encoder

Creates an encoder that uses the given SerialFormat for encoding objects and is compatible with the given media types.