vertx / io.vertx.ext.web.client / HttpRequest / as

as

abstract fun <U : Any> as(responseCodec: BodyCodec<U>): HttpRequest<U>

Configure the request to decode the response with the responseCodec.

Parameters

responseCodec - the response codec

Return
a reference to this, so the API can be used fluently