| Modifier and Type | Field and Description |
|---|---|
| private final HttpConnection | |
| private List | |
| private Handler | |
| private HttpEventHandler | |
| private MultiMap | |
| private static final Logger | |
| private NetSocket | |
| private Handler | |
| private final HttpClientRequestBase | |
| private final int | |
| private final String | |
| private final HttpClientStream | |
| private MultiMap | |
| private final HttpVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpClientResponseImpl(HttpClientRequestBase request, HttpVersion version, HttpClientStream stream, int statusCode, String statusMessage, MultiMap headers)
|
| Modifier and Type | Method and Description |
|---|---|
| public Future | body()
Implements io. Convenience method for receiving the entire request body in one piece. |
| private void | |
| public List | |
| public HttpClientResponse | customFrameHandler(Handler<HttpFrame> handler)
Implements io. Set an custom frame handler. |
| public synchronized Future | end()
Implements io. Returns a future signaling when the response has been fully received successfully or failed. |
| public HttpClientResponse | |
| private HttpEventHandler | |
| public HttpClientResponse | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public HttpClientResponse | fetch(long amount)
Implements io. Fetch the specified |
| public String | getHeader(String
the header name headerName)Implements io. Return the first header value with the specified name |
| public String | getHeader(CharSequence
the header name headerName)Implements io. Return the first header value with the specified name |
| public String | getTrailer(String
the trailer name trailerName)Implements io. Return the first trailer value with the specified name |
| pack-priv void | handleChunk(Buffer data)
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
|
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public HttpClientResponse | |
| pack-priv void | |
| public MultiMap | |
| public NetSocket | |
| public HttpClientResponse | pause()
Implements io. Pause the |
| public HttpClientRequestBase | |
| public HttpClientResponse | resume()
Implements io. Resume reading, and sets the buffer in |
| public int | |
| public String | |
| public HttpClientResponse | streamPriorityHandler(Handler<StreamPriority>
the handler to be called when the stream priority changes handler)Implements io. Set an handler for stream priority changes. |
| public MultiMap | |
| public HttpVersion |
| conn | back to summary |
|---|---|
| private final HttpConnection conn | |
| cookies | back to summary |
|---|---|
| private List<String> cookies | |
| customFrameHandler | back to summary |
|---|---|
| private Handler<HttpFrame> customFrameHandler | |
| eventHandler | back to summary |
|---|---|
| private HttpEventHandler eventHandler | |
| headers | back to summary |
|---|---|
| private MultiMap headers | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| netSocket | back to summary |
|---|---|
| private NetSocket netSocket | |
| priorityHandler | back to summary |
|---|---|
| private Handler<StreamPriority> priorityHandler | |
| request | back to summary |
|---|---|
| private final HttpClientRequestBase request | |
| statusCode | back to summary |
|---|---|
| private final int statusCode | |
| statusMessage | back to summary |
|---|---|
| private final String statusMessage | |
| stream | back to summary |
|---|---|
| private final HttpClientStream stream | |
| trailers | back to summary |
|---|---|
| private MultiMap trailers | |
| version | back to summary |
|---|---|
| private final HttpVersion version | |
| HttpClientResponseImpl | back to summary |
|---|---|
| pack-priv HttpClientResponseImpl(HttpClientRequestBase request, HttpVersion version, HttpClientStream stream, int statusCode, String statusMessage, MultiMap headers) | |
| body | back to summary |
|---|---|
| public Future Implements io. Doc from io. Convenience method for receiving the entire request body in one piece. This saves you having to manually set a dataHandler and an endHandler and append the chunks of the body until the whole body received. Don't use this if your request body is large - you could potentially run out of RAM. | |
| checkEnded | back to summary |
|---|---|
| private void checkEnded() | |
| cookies | back to summary |
|---|---|
| public List Implements io.
| |
| customFrameHandler | back to summary |
|---|---|
| public HttpClientResponse customFrameHandler(Handler<HttpFrame> handler) Implements io. Doc from io. Set an custom frame handler. The handler will get notified when the http stream receives an custom HTTP/2 frame. HTTP/2 permits extension of the protocol.
| |
| end | back to summary |
|---|---|
| public synchronized Future Implements io. Doc from io. Returns a future signaling when the response has been fully received successfully or failed. | |
| endHandler | back to summary |
|---|---|
| public HttpClientResponse endHandler(Handler<Void> handler) Implements io.
| |
| eventHandler | back to summary |
|---|---|
| private HttpEventHandler eventHandler(boolean create) | |
| exceptionHandler | back to summary |
|---|---|
| public HttpClientResponse exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| fetch | back to summary |
|---|---|
| public HttpClientResponse fetch(long amount) Implements io. Doc from io. Fetch the specified
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String headerName) Implements io. Doc from io. Return the first header value with the specified name | |
| getHeader | back to summary |
|---|---|
| public String getHeader(CharSequence headerName) Implements io. Doc from io. Return the first header value with the specified name
| |
| getTrailer | back to summary |
|---|---|
| public String getTrailer(String trailerName) Implements io. Doc from io. Return the first trailer value with the specified name | |
| handleChunk | back to summary |
|---|---|
| pack-priv void handleChunk(Buffer data)
References Deprecated
See corresponding docs for further information. | |
| handleEnd | back to summary |
|---|---|
| pack-priv void handleEnd(MultiMap trailers) | |
| handleException | back to summary |
|---|---|
| pack-priv void handleException(Throwable e) | |
| handlePriorityChange | back to summary |
|---|---|
| pack-priv void handlePriorityChange(StreamPriority streamPriority) | |
| handler | back to summary |
|---|---|
| public HttpClientResponse handler(Handler<Buffer> handler) Implements io.
| |
| handleUnknownFrame | back to summary |
|---|---|
| pack-priv void handleUnknownFrame(HttpFrame frame) | |
| headers | back to summary |
|---|---|
| public MultiMap headers() Implements io.
| |
| netSocket | back to summary |
|---|---|
| public NetSocket netSocket() Implements io.
| |
| pause | back to summary |
|---|---|
| public HttpClientResponse pause() Implements io. Doc from io. Pause the
While it's paused, no data will be sent to the data
| |
| request | back to summary |
|---|---|
| public HttpClientRequestBase request() Implements io.
| |
| resume | back to summary |
|---|---|
| public HttpClientResponse resume() Implements io. Doc from io. Resume reading, and sets the buffer in
If the
| |
| statusCode | back to summary |
|---|---|
| public int statusCode() Implements io.
| |
| statusMessage | back to summary |
|---|---|
| public String statusMessage() Implements io.
| |
| streamPriorityHandler | back to summary |
|---|---|
| public HttpClientResponse streamPriorityHandler(Handler<StreamPriority> handler) Implements io. Doc from io. Set an handler for stream priority changes. This is not implemented for HTTP/1.x.
| |
| trailers | back to summary |
|---|---|
| public MultiMap trailers() Implements io.
| |
| version | back to summary |
|---|---|
| public HttpVersion version() Implements io.
| |