public abstract class HttpClientResponse
extends org.vertx.java.core.http.impl.HttpReadStreamBase
An instance of this class is provided to the user via a Handler
instance that was specified when one of the HTTP method operations, or the
generic HttpClient.request(String, String, org.vertx.java.core.Handler)
method was called on an instance of HttpClient
.
It implements ReadStream
so it can be used with
Pump
to pump data with flow control.
Instances of this class are not thread-safe
Modifier and Type | Field and Description |
---|---|
int |
statusCode
The HTTP status code of the response
|
java.lang.String |
statusMessage
The HTTP status message of the response
|
Modifier | Constructor and Description |
---|---|
protected |
HttpClientResponse(int statusCode,
java.lang.String statusMessage) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.List<java.lang.String> |
cookies() |
abstract java.util.Map<java.lang.String,java.lang.String> |
headers() |
abstract java.util.Map<java.lang.String,java.lang.String> |
trailers() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataHandler, endHandler, exceptionHandler, pause, resume
public final int statusCode
public final java.lang.String statusMessage
protected HttpClientResponse(int statusCode, java.lang.String statusMessage)
public abstract java.util.Map<java.lang.String,java.lang.String> headers()
public abstract java.util.Map<java.lang.String,java.lang.String> trailers()
public abstract java.util.List<java.lang.String> cookies()