src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpResponse.java
branchhttp-client-branch
changeset 55860 dc4a39bc1517
parent 55858 cd5eeec735fb
child 55869 54f89370f26a
equal deleted inserted replaced
55859:4ca3e578b9c4 55860:dc4a39bc1517
   261      * <p> Some pre-defined implementations which do not utilize the status code
   261      * <p> Some pre-defined implementations which do not utilize the status code
   262      * or headers (meaning the body is always accepted) are defined:
   262      * or headers (meaning the body is always accepted) are defined:
   263      * <ul><li>{@link #asByteArray() }</li>
   263      * <ul><li>{@link #asByteArray() }</li>
   264      * <li>{@link #asByteArrayConsumer(java.util.function.Consumer)
   264      * <li>{@link #asByteArrayConsumer(java.util.function.Consumer)
   265      * asByteArrayConsumer(Consumer)}</li>
   265      * asByteArrayConsumer(Consumer)}</li>
       
   266      * <li>{@link #asString(java.nio.charset.Charset) asString(Charset)}</li>
       
   267      * <li>{@link #asFile(Path, OpenOption...)
       
   268      * asFile(Path,OpenOption...)}</li>
   266      * <li>{@link #asFileDownload(java.nio.file.Path,OpenOption...)
   269      * <li>{@link #asFileDownload(java.nio.file.Path,OpenOption...)
   267      * asFileDownload(Path,OpenOption...)}</li>
   270      * asFileDownload(Path,OpenOption...)}</li>
       
   271      * <li>{@link #asInputStream() asInputStream()}</li>
   268      * <li>{@link #discard(Object) }</li>
   272      * <li>{@link #discard(Object) }</li>
   269      * <li>{@link #asString(java.nio.charset.Charset)
   273      * <li>{@link #buffering(BodyHandler, int)
   270      * asString(Charset)}</li></ul>
   274      * buffering(BodyHandler,int)}</li>
       
   275      * </ul>
   271      *
   276      *
   272      * <p> These implementations return the equivalent {@link BodySubscriber}.
   277      * <p> These implementations return the equivalent {@link BodySubscriber}.
   273      * Alternatively, the handler can be used to examine the status code
   278      * Alternatively, the handler can be used to examine the status code
   274      * or headers and return different body subscribers as appropriate.
   279      * or headers and return different body subscribers as appropriate.
   275      *
   280      *