AdapterCodecSpec

A spec for configuring an AdapterCodec.

Functions

Link copied to clipboard
open fun basic()

Shorthand for calling both basicEncoder&basicDecoder.

Link copied to clipboard
abstract fun basicDecoder()

Adds the basic decoder. In addition to the basic types specified by Decoder.basic, the added decoder supports Kotlin's Unit, which tells the decoder to discard the response body.

Link copied to clipboard
abstract fun basicEncoder()

Adds the basic encoder.

Link copied to clipboard
abstract operator fun BodyAdapter.Decoder.unaryPlus()
abstract operator fun BodyAdapter.Encoder.unaryPlus()