vertx / io.vertx.reactivex.ext.web.client / HttpResponse

HttpResponse

open class HttpResponse<T : Any>

An HTTP response.

The usual HTTP response attributes are available:

The body of the response is returned by io.vertx.reactivex.ext.web.client.HttpResponse#body decoded as the format specified by the that built the response.

Keep in mind that using this HttpResponse impose to fully buffer the response body and should be used for payload that can fit in memory.

NOTE: This class has been automatically generated from the io.vertx.ext.web.client.HttpResponse non RX-ified interface using Vert.x codegen.

Constructors

<init>

HttpResponse(delegate: HttpResponse<Any>)
HttpResponse(delegate: HttpResponse<Any>, typeArg_0: TypeArg<T>)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<HttpResponse<Any>>

__typeArg_0

val __typeArg_0: TypeArg<T>

Functions

body

open fun body(): T

bodyAsBuffer

open fun bodyAsBuffer(): Buffer

bodyAsJson

open fun <R : Any> bodyAsJson(type: Class<R>): R

bodyAsJsonArray

open fun bodyAsJsonArray(): JsonArray

bodyAsJsonObject

open fun bodyAsJsonObject(): JsonObject

bodyAsString

open fun bodyAsString(): String
open fun bodyAsString(encoding: String): String

cookies

open fun cookies(): MutableList<String>

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): HttpResponse<Any>

getHeader

open fun getHeader(headerName: String): String

Return the first header value with the specified name

getTrailer

open fun getTrailer(trailerName: String): String

Return the first trailer value with the specified name

hashCode

open fun hashCode(): Int

headers

open fun headers(): MultiMap

newInstance

open static fun <T : Any> newInstance(arg: HttpResponse<Any>): HttpResponse<T>
open static fun <T : Any> newInstance(arg: HttpResponse<Any>, __typeArg_T: TypeArg<T>): HttpResponse<T>

statusCode

open fun statusCode(): Int

statusMessage

open fun statusMessage(): String

toString

open fun toString(): String

trailers

open fun trailers(): MultiMap

version

open fun version(): HttpVersion