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

# BodyCodec

`open class BodyCodec<T : Any>`

A codec for encoding and decoding HTTP bodies. NOTE: This class has been automatically generated from the io.vertx.ext.web.codec.BodyCodec non RX-ified interface using Vert.x codegen.

### Constructors

<init> | `BodyCodec(delegate: BodyCodec<Any>)` `BodyCodec(delegate: BodyCodec<Any>, typeArg_0: TypeArg<T>)`

### Properties

__TYPE_ARG | `static val __TYPE_ARG: TypeArg<BodyCodec<Any>>`
__typeArg_0 | `val __typeArg_0: TypeArg<T>`

### Functions

buffer | `open static fun buffer(): BodyCodec<Buffer>`
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.
equals | `open fun equals(other: Any?): Boolean`
getDelegate | `open fun getDelegate(): BodyCodec<Any>`
hashCode | `open fun hashCode(): Int`
json | `open static fun <U : Any> json(type: Class<U>): BodyCodec<U>` Create and return a codec for Java objects encoded using Jackson mapper.
jsonArray | `open static fun jsonArray(): BodyCodec<JsonArray>`
jsonObject | `open static fun jsonObject(): BodyCodec<JsonObject>`
newInstance | `open static fun <T : Any> newInstance(arg: BodyCodec<Any>): BodyCodec<T>` `open static fun <T : Any> newInstance(arg: BodyCodec<Any>, __typeArg_T: TypeArg<T>): BodyCodec<T>`
none | `open static fun none(): BodyCodec<Void>`
pipe | `open static fun pipe(stream: WriteStream<Buffer>): BodyCodec<Void>` A body codec that pipes the body to a write stream.
string | `open static fun string(): BodyCodec<String>``open static fun string(encoding: String): BodyCodec<String>` A codec for strings using a specific `encoding`.
toString | `open fun toString(): String`