open static fun <T : Any> create(decode: Function<Buffer, T>): BodyCodec<T>
Create a codec that buffers the entire body and then apply the decode function and returns the result.
decode
decode - the decode function
Return the created codec