equal
deleted
inserted
replaced
359 * } |
359 * } |
360 * </pre> |
360 * </pre> |
361 * |
361 * |
362 * @param <T> the response body type |
362 * @param <T> the response body type |
363 */ |
363 */ |
|
364 @FunctionalInterface |
364 public interface BodyHandler<T> { |
365 public interface BodyHandler<T> { |
365 /** |
366 /** |
366 * Returns a {@link BodySubscriber BodySubscriber} considering the given |
367 * Returns a {@link BodySubscriber BodySubscriber} considering the given |
367 * response status code and headers. This method is always called before |
368 * response status code and headers. This method is always called before |
368 * the body is read and its implementation can decide to keep the body |
369 * the body is read and its implementation can decide to keep the body |