Modifier and Type | Class and Description |
---|---|
pack-priv static class | Http1Exchange.DataPair
A carrier for either data or an error. |
pack-priv class | Http1Exchange.Http1Publisher
A Publisher of HTTP/1.1 headers and request body. |
pack-priv abstract static class | Http1Exchange.Http1RequestBodySubscriber
An abstract supertype for HTTP/1.1 body subscribers. |
pack-priv static class | Http1Exchange.Http1ResponseBodySubscriber<
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 Executor | |
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 List | |
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. |
pack-priv void | cancel(IOException cause)
Implements abstract jdk. |
private void | |
private void | |
private void | |
pack-priv final HttpClientImpl | |
pack-priv void | completed()
Implements abstract jdk. |
private void | |
pack-priv HttpConnection | connection()
Implements abstract jdk. HttpConnection instance to which this exchange is
assigned.
|
pack-priv Http1Exchange. | createResponseSubscriber(HttpResponse.
a body handler handler,a response info responseOverrides jdk. HttpResponse. from a HttpResponse. for the given ResponseInfo .
|
pack-priv String | |
pack-priv ByteBuffer | |
pack-priv void | |
pack-priv Throwable | getCancelCause()
Implements abstract jdk. |
private Http1Exchange. | |
pack-priv CompletableFuture | getResponseAsync(Executor executor)
Implements abstract jdk. |
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. |
pack-priv boolean | isCanceled()
Implements abstract jdk. |
public void | |
pack-priv void | onProtocolError(final IOException
The cause of the protocol violation cause)Implements abstract jdk. |
pack-priv CompletableFuture | readBodyAsync(HttpResponse.
Implements abstract jdk. |
private boolean | |
pack-priv void | released()
Implements abstract jdk. |
pack-priv HttpRequestImpl | |
private void | |
private void | |
pack-priv CompletableFuture | sendBodyAsync()
Implements abstract jdk. |
pack-priv CompletableFuture | |
pack-priv Http1Exchange. | |
pack-priv Http1Exchange. | |
public String | |
private boolean | |
pack-priv void |