open class HttpResponse<T : Any>
An HTTP response.
The usual HTTP response attributes are available:
io.vertx.reactivex.ext.web.client.HttpResponse#statusCode the HTTP status codeio.vertx.reactivex.ext.web.client.HttpResponse#statusMessage the HTTP status messageio.vertx.reactivex.ext.web.client.HttpResponse#headers the HTTP headersio.vertx.reactivex.ext.web.client.HttpResponse#version the HTTP version 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.
HttpResponse(delegate: HttpResponse<Any>)HttpResponse(delegate: HttpResponse<Any>, typeArg_0: TypeArg<T>) |
static val __TYPE_ARG: TypeArg<HttpResponse<Any>> |
|
val __typeArg_0: TypeArg<T> |
open fun body(): T |
|
open fun bodyAsBuffer(): Buffer |
|
open fun <R : Any> bodyAsJson(type: Class<R>): R |
|
open fun bodyAsJsonArray(): JsonArray |
|
open fun bodyAsJsonObject(): JsonObject |
|
open fun bodyAsString(): Stringopen fun bodyAsString(encoding: String): String |
|
open fun cookies(): MutableList<String> |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): HttpResponse<Any> |
|
open fun getHeader(headerName: String): String
Return the first header value with the specified name |
|
open fun getTrailer(trailerName: String): String
Return the first trailer value with the specified name |
|
open fun hashCode(): Int |
|
open fun headers(): MultiMap |
|
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> |
|
open fun statusCode(): Int |
|
open fun statusMessage(): String |
|
open fun toString(): String |
|
open fun trailers(): MultiMap |
|
open fun version(): HttpVersion |