equal
deleted
inserted
replaced
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 |