public class DefaultHttpClientResponse extends java.lang.Object implements HttpClientResponse
| Modifier and Type | Method and Description |
|---|---|
HttpClientResponse |
bodyHandler(Handler<Buffer> bodyHandler)
Convenience method for receiving the entire request body in one piece.
|
java.util.List<java.lang.String> |
cookies() |
HttpClientResponse |
dataHandler(Handler<Buffer> dataHandler)
Set a data handler.
|
HttpClientResponse |
endHandler(Handler<java.lang.Void> endHandler)
Set an end handler.
|
HttpClientResponse |
exceptionHandler(Handler<java.lang.Throwable> exceptionHandler)
Set an exception handler.
|
MultiMap |
headers() |
NetSocket |
netSocket()
Get a net socket for the underlying connection of this request.
|
HttpClientResponse |
pause()
Pause the
ReadStream. |
HttpClientResponse |
resume()
Resume reading.
|
int |
statusCode()
The HTTP status code of the response
|
java.lang.String |
statusMessage()
The HTTP status message of the response
|
MultiMap |
trailers() |
public int statusCode()
HttpClientResponsestatusCode in interface HttpClientResponsepublic java.lang.String statusMessage()
HttpClientResponsestatusMessage in interface HttpClientResponsepublic MultiMap headers()
headers in interface HttpClientResponsepublic MultiMap trailers()
trailers in interface HttpClientResponsepublic java.util.List<java.lang.String> cookies()
cookies in interface HttpClientResponsepublic HttpClientResponse dataHandler(Handler<Buffer> dataHandler)
ReadStreamdataHandler in interface ReadStream<HttpClientResponse>public HttpClientResponse endHandler(Handler<java.lang.Void> endHandler)
ReadStreamendHandler in interface ReadStream<HttpClientResponse>public HttpClientResponse exceptionHandler(Handler<java.lang.Throwable> exceptionHandler)
ExceptionSupportexceptionHandler in interface ExceptionSupport<HttpClientResponse>public HttpClientResponse pause()
ReadStreamReadStream. While the stream is paused, no data will be sent to the dataHandlerpause in interface ReadStream<HttpClientResponse>public HttpClientResponse resume()
ReadStreamReadStream has been paused, reading will recommence on it.resume in interface ReadStream<HttpClientResponse>public HttpClientResponse bodyHandler(Handler<Buffer> bodyHandler)
HttpClientResponsebodyHandler in interface HttpClientResponsebodyHandler - This handler will be called after all the body has been receivedpublic NetSocket netSocket()
HttpClientResponsenetSocket in interface HttpClientResponse