Modifier and Type | Class and Description |
---|---|
public static class | |
public static class | |
public static class | ResponseSubscribers.
An InputStream built on top of the Flow API. |
public static class | ResponseSubscribers.
the upstream body type T, this subscriber's body type U>A body subscriber which receives input from an upstream subscriber and maps that subscriber's body type to a new type. |
public static class | |
public static class | ResponseSubscribers.
A Subscriber that writes the flow of data to a given file. |
pack-priv static class | |
public static class | ResponseSubscribers.
An adapter between |
public static interface | ResponseSubscribers.
The response type. T>This interface is used by our BodySubscriber implementations to declare whether calling getBody() inline is safe, or whether it needs to be called asynchronously in an executor thread. |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public static HttpResponse. | |
public static HttpResponse. | |
public static HttpResponse. | |
public static < The type of the response. T> CompletionStage | Returns: A completion stage that completes when the completion stage returned by bs::getBody completes. This may, or may not, be the same completion stage.The executor to use if an executor is required. e, HttpResponse.The BodySubscriber (trusted or not) bsTries to determine whether bs::getBody must be invoked asynchronously, and if so, uses the provided executor to do it. |
public static < The response type. T> CompletableFuture | Returns: The providedcf .The executor that should be used to call bs::getBody e, HttpResponse.The BodySubscriber bs,A completable future that this function will set up
to complete when the completion stage returned by
bs::getBody completes.
In case of any error while trying to set up the
completion chain, cf)cf will be completed
exceptionally with that error.Invokes bs::getBody using the provided executor. |
public static < The response type. T> CompletableFuture | Returns: The providecf . If the errorHandler is
invoked, it is the responsibility of the errorHandler to
complete the cf , if needed.The executor that should be used to call bs::getBody e, HttpResponse.The BodySubscriber bs,A completable future that this function will set up
to complete when the completion stage returned by
bs::getBody completes.
In case of any error while trying to set up the
completion chain, cf, Consumer<Throwable> cf will be completed
exceptionally with that error.The handler to invoke if an error is raised
while trying to set up the completion chain. errorHandler)Invokes bs::getBody using the provided executor. |