doEncode

abstract fun <T> doEncode(input: T, type: TypeRef<T>): Content

Encodes the given input into the wire representation based on the data format.

Return

the encoded wire representation of the payload.

Parameters

input

the object to encode.

type

reified type of the object to encode.