| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| pack-priv final Exchange | |
| private volatile boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static <U> CompletableFuture | |
| private static <U> CompletableFuture | |
| pack-priv abstract void | |
| pack-priv abstract void | |
| pack-priv static boolean | Returns: true, if it is allowed to cancel the request timer on
response body subscriber termination; false, otherwiseindicates if the associated request is a WebSocket handshake webSocket, int the status code of the associated response statusCode)Returns |
| private static <U, T extends ExchangeImpl | |
| pack-priv HttpClientImpl | |
| pack-priv abstract void | completed()
Called when the exchange is completed, so that cleanup actions may be performed - such as deregistering callbacks. |
| pack-priv abstract HttpConnection | |
| private static <U> CompletableFuture | |
| private static <U> CompletableFuture | |
| private static <T> CompletableFuture | |
| pack-priv HttpBodySubscriberWrapper | Returns: a newHttpBodySubscriberWrapper to handle the responsea body handler handler,a response info responseCreates and wraps an |
| pack-priv void | |
| pack-priv final boolean | |
| private static <U> CompletableFuture | fallbackToHttp1OnTimeout(Http3Connection c, Throwable t, Exchange<U> exchange, HttpConnection connection)
|
| private static <U> CompletableFuture | firstToComplete(Exchange<U> exchange, HttpConnection connection, Supplier<CompletableFuture<Http2Connection>> c2fs, CompletableFuture<Http3Connection> c3f)
|
| pack-priv static <U> CompletableFuture | get(Exchange<U> exchange, HttpConnection connection)
Initiates a new exchange and assigns it to a connection if one exists already. |
| pack-priv abstract Throwable | Returns: the cause for which this exchange was canceled, if available.Returns the cause for which this exchange was canceled, if available. |
| pack-priv final Exchange | |
| pack-priv abstract CompletableFuture | |
| pack-priv abstract CompletableFuture | |
| pack-priv abstract boolean | |
| private static boolean | |
| pack-priv void | |
| pack-priv abstract void | onProtocolError(IOException
The cause of the protocol violation cause)Invoked whenever there is a (HTTP) protocol error when dealing with the response from the server. |
| pack-priv abstract CompletableFuture | readBodyAsync(HttpResponse.
|
| pack-priv abstract void | released()
Called when the exchange is released, so that cleanup actions may be performed - such as deregistering callbacks. |
| pack-priv abstract CompletableFuture | |
| pack-priv abstract CompletableFuture | |
| pack-priv final void | |
| pack-priv void |
| debug | back to summary |
|---|---|
| private static final Logger debug | |
| exchange | back to summary |
|---|---|
| pack-priv final Exchange<T> exchange | |
| expectTimeoutRaised | back to summary |
|---|---|
| private volatile boolean expectTimeoutRaised | |
| ExchangeImpl | back to summary |
|---|---|
| pack-priv ExchangeImpl(Exchange<T> e) | |
| attemptHttp2Exchange | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| attemptHttp3Exchange | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| cancel | back to summary |
|---|---|
| pack-priv abstract void cancel() Cancels a request. Not currently exposed through API. | |
| cancel | back to summary |
|---|---|
| pack-priv abstract void cancel(IOException cause) Cancels a request with a cause. Not currently exposed through API. | |
| cancelTimerOnResponseBodySubscriberTermination | back to summary |
|---|---|
| pack-priv static boolean cancelTimerOnResponseBodySubscriberTermination(boolean webSocket, int statusCode) Returns
| |
| checkCancelled | back to summary |
|---|---|
| private static <U, T extends ExchangeImpl | |
| client | back to summary |
|---|---|
| pack-priv HttpClientImpl client() | |
| completed | back to summary |
|---|---|
| pack-priv abstract void completed() Called when the exchange is completed, so that cleanup actions may be performed - such as deregistering callbacks. Typically, completed is called at the end of the exchange, when the final response body has been received (or an error has caused the completion of the exchange). | |
| connection | back to summary |
|---|---|
| pack-priv abstract HttpConnection connection() Returns the | |
| createExchangeImpl | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| createExchangeImpl | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| createHttp1Exchange | back to summary |
|---|---|
| private static <T> CompletableFuture | |
| createResponseSubscriber | back to summary |
|---|---|
| pack-priv HttpBodySubscriberWrapper Creates and wraps an
| |
| expectContinueFailed | back to summary |
|---|---|
| pack-priv void expectContinueFailed(int rcode) | |
| expectTimeoutRaised | back to summary |
|---|---|
| pack-priv final boolean expectTimeoutRaised() | |
| fallbackToHttp1OnTimeout | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| firstToComplete | back to summary |
|---|---|
| private static <U> CompletableFuture | |
| get | back to summary |
|---|---|
| pack-priv static <U> CompletableFuture Initiates a new exchange and assigns it to a connection if one exists already. connection usually null. | |
| getCancelCause | back to summary |
|---|---|
| pack-priv abstract Throwable getCancelCause() Returns the cause for which this exchange was canceled, if available.
| |
| getExchange | back to summary |
|---|---|
| pack-priv final Exchange | |
| getResponseAsync | back to summary |
|---|---|
| pack-priv abstract CompletableFuture Gets the response headers. Completes before body is read. | |
| ignoreBody | back to summary |
|---|---|
| pack-priv abstract CompletableFuture Ignore/consume the body. | |
| isCanceled | back to summary |
|---|---|
| pack-priv abstract boolean isCanceled() Returns true if this exchange was canceled.
| |
| isTCP | back to summary |
|---|---|
| private static boolean isTCP(HttpConnection connection) | |
| nullBody | back to summary |
|---|---|
| pack-priv void nullBody(HttpResponse<T> resp, Throwable t) | |
| onProtocolError | back to summary |
|---|---|
| pack-priv abstract void onProtocolError(IOException cause) Invoked whenever there is a (HTTP) protocol error when dealing with the response
from the server. The implementations of
| |
| readBodyAsync | back to summary |
|---|---|
| pack-priv abstract CompletableFuture | |
| released | back to summary |
|---|---|
| pack-priv abstract void released() Called when the exchange is released, so that cleanup actions may be performed - such as deregistering callbacks. Typically released is called during upgrade, when an HTTP/2 stream takes over from an Http1Exchange, or when a new exchange is created during a multi exchange before the final response body was received. | |
| sendBodyAsync | back to summary |
|---|---|
| pack-priv abstract CompletableFuture Sends a request body, after request headers have been sent. | |
| sendHeadersAsync | back to summary |
|---|---|
| pack-priv abstract CompletableFuture | |
| setExpectTimeoutRaised | back to summary |
|---|---|
| pack-priv final void setExpectTimeoutRaised() | |
| upgraded | back to summary |
|---|---|
| pack-priv void upgraded() | |