Uses of Interface
java.net.http.HttpResponse.PushPromiseHandler
Packages that use HttpResponse.PushPromiseHandler
-
Uses of HttpResponse.PushPromiseHandler in java.net.http
Methods in java.net.http that return HttpResponse.PushPromiseHandlerModifier and TypeMethodDescriptionstatic <T> HttpResponse.PushPromiseHandler<T>
HttpResponse.PushPromiseHandler.of
(Function<HttpRequest, HttpResponse.BodyHandler<T>> pushPromiseHandler, ConcurrentMap<HttpRequest, CompletableFuture<HttpResponse<T>>> pushPromisesMap) Returns a push promise handler that accumulates push promises, and their responses, into the given map.Methods in java.net.http with parameters of type HttpResponse.PushPromiseHandlerModifier and TypeMethodDescriptionabstract <T> CompletableFuture<HttpResponse<T>>
HttpClient.sendAsync
(HttpRequest request, HttpResponse.BodyHandler<T> responseBodyHandler, HttpResponse.PushPromiseHandler<T> pushPromiseHandler) Sends the given request asynchronously using this client with the given response body handler and push promise handler.