src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java
branchhttp-client-branch
changeset 55764 34d7cc00f87a
parent 55763 634d8e14c172
child 55810 7fd3589d3388
equal deleted inserted replaced
55763:634d8e14c172 55764:34d7cc00f87a
   801          * (an empty {@code Optional}) is returned, then the push will be canceled.
   801          * (an empty {@code Optional}) is returned, then the push will be canceled.
   802          * If required, the {@code CompletableFuture<Void>} supplied to the {@code onFinalPushPromise} parameter
   802          * If required, the {@code CompletableFuture<Void>} supplied to the {@code onFinalPushPromise} parameter
   803          * of {@link #completion(CompletableFuture, CompletableFuture)} can be used to determine
   803          * of {@link #completion(CompletableFuture, CompletableFuture)} can be used to determine
   804          * when the final PUSH_PROMISE is received.
   804          * when the final PUSH_PROMISE is received.
   805          *
   805          *
   806          * @param request the push promise
   806          * @param pushPromise the push promise
   807          *
   807          *
   808          * @return an optional body handler
   808          * @return an optional body handler
   809          */
   809          */
   810         Optional<BodyHandler<T>> onPushPromise(HttpRequest pushPromise);
   810         Optional<BodyHandler<T>> onPushPromise(HttpRequest pushPromise);
   811 
   811