src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java
branchhttp-client-branch
changeset 56038 e663f24e3020
parent 56034 43b531ed872b
child 56071 3353cb42b1b4
equal deleted inserted replaced
56037:c026ce4a1a81 56038:e663f24e3020
   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