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

# create

`abstract fun create(handler: Handler<AsyncResult<BodyStream<T>>>): Unit`

Create the BodyStream.

This method is usually called for creating the pump for the HTTP response and should not be called directly.

`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