java.lang.Object
com.github.mizosoft.methanol.internal.extensions.Handlers
Static functions for converting the response body into a usable body type.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CompletableFuture
<T> handleAsync
(HttpResponse.ResponseInfo responseInfo, Flow.Publisher<List<ByteBuffer>> publisher, HttpResponse.BodyHandler<T> handler, Executor executor) static <T> CompletableFuture
<HttpResponse<T>> handleAsync
(HttpResponse<?> response, Flow.Publisher<List<ByteBuffer>> publisher, HttpResponse.BodyHandler<T> handler, Executor executor) static <T> CompletableFuture
<HttpResponse<T>> handleAsync
(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response, HttpResponse.BodyHandler<T> handler, Executor executor) static <T> Methanol.Interceptor.Chain
<Flow.Publisher<List<ByteBuffer>>> toPublisherChain
(Methanol.Interceptor.Chain<T> chain, Executor executor)
-
Method Details
-
handleAsync
public static <T> CompletableFuture<HttpResponse<T>> handleAsync(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response, HttpResponse.BodyHandler<T> handler, Executor executor) -
handleAsync
public static <T> CompletableFuture<HttpResponse<T>> handleAsync(HttpResponse<?> response, Flow.Publisher<List<ByteBuffer>> publisher, HttpResponse.BodyHandler<T> handler, Executor executor) -
handleAsync
public static <T> CompletableFuture<T> handleAsync(HttpResponse.ResponseInfo responseInfo, Flow.Publisher<List<ByteBuffer>> publisher, HttpResponse.BodyHandler<T> handler, Executor executor) -
toPublisherChain
public static <T> Methanol.Interceptor.Chain<Flow.Publisher<List<ByteBuffer>>> toPublisherChain(Methanol.Interceptor.Chain<T> chain, Executor executor)
-