vertx / io.vertx.reactivex.ext.web.codec / BodyCodec / create

create

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.

Parameters

decode - the decode function

Return
the created codec