| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Http1Exchange.
A carrier for either data or an error. |
| pack-priv class | Http1Exchange.
A Publisher of HTTP/1.1 headers and request body. |
| pack-priv abstract static class | Http1Exchange.
An abstract supertype for HTTP/1.1 body subscribers. |
| pack-priv static class | Http1Exchange.
The type of response. U>The Http1AsyncReceiver ensures that all calls to the subscriber, including onSubscribe, occur sequentially. |
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final Http1AsyncReceiver | |
| private final CompletableFuture | bodySentCF
Completed when the body has been published, or there is an error |
| private volatile Http1Exchange. | bodySubscriber
The subscriber to the request's body published. |
| pack-priv final HttpClientImpl | |
| pack-priv final HttpConnection | |
| pack-priv final Logger | |
| pack-priv final HttpClientImpl. | |
| private final AtomicReference | failedRef
Records a possible cancellation raised before any operation has been initiated, or an error received while sending the request. |
| private final CompletableFuture | headersSentCF
Completed when the header have been published, or there is an error |
| private final ReentrantLock | lock
Must be held when operating on any internal state or data. |
| private final ConcurrentLinkedDeque | |
| pack-priv final ConcurrentLinkedDeque | outgoing
Holds the outgoing data, either the headers or a request body part. |
| pack-priv final HttpRequestImpl | |
| pack-priv final Http1Request | |
| private volatile Http1Response | |
| private volatile HttpResponse. | responseSubscriber
The subscriber to the response's body received. |
| private Http1Exchange. | |
| private volatile boolean | |
| private final Http1Exchange | writePublisher
The write publisher, responsible for writing the complete request ( both headers and body ( if any )). |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | appendToOutgoing(Throwable throwable)
Convenience for |
| pack-priv void | |
| private void | |
| pack-priv void | cancel()
Implements abstract jdk. Cancel checks to see if request and responseAsync finished already. |
| pack-priv void | cancel(IOException cause)
Implements abstract jdk. Cancel checks to see if request and responseAsync finished already. |
| private void | |
| private void | |
| private void | |
| pack-priv final HttpClientImpl | |
| pack-priv void | completed()
Implements abstract jdk. Called when the exchange is completed, so that cleanup actions may be performed - such as deregistering callbacks. |
| private void | |
| pack-priv HttpConnection | connection()
Implements abstract jdk. Returns the |
| pack-priv Http1Exchange. | createResponseSubscriber(HttpResponse.
Overrides jdk. Creates and wraps an |
| pack-priv String | |
| pack-priv ByteBuffer | |
| pack-priv void | |
| pack-priv Throwable | getCancelCause()
Implements abstract jdk. Returns the cause for which this exchange was canceled, if available. |
| private Http1Exchange. | |
| pack-priv CompletableFuture | getResponseAsync(Executor executor)
Implements abstract jdk. Gets the response headers. |
| private boolean | hasOutgoing()
Tells whether, or not, there is any outgoing data that can be published, or if there is an error. |
| pack-priv CompletableFuture | ignoreBody()
Implements abstract jdk. Ignore/consume the body. |
| pack-priv boolean | isCanceled()
Implements abstract jdk. Returns true if this exchange was canceled. |
| public void | |
| pack-priv void | onProtocolError(final IOException cause)
Implements abstract jdk. Invoked whenever there is a (HTTP) protocol error when dealing with the response from the server. |
| pack-priv CompletableFuture | readBodyAsync(HttpResponse.
Implements abstract jdk.
|
| private boolean | |
| pack-priv void | released()
Implements abstract jdk. Called when the exchange is released, so that cleanup actions may be performed - such as deregistering callbacks. |
| pack-priv HttpRequestImpl | |
| private void | |
| private void | |
| pack-priv CompletableFuture | sendBodyAsync()
Implements abstract jdk. Sends a request body, after request headers have been sent. |
| pack-priv CompletableFuture | |
| pack-priv Http1Exchange. | |
| pack-priv Http1Exchange. | |
| public String | |
| private boolean | |
| pack-priv void |