## Uses of Interface
java.net.http.HttpResponse.BodyProcessor

Packages that use HttpResponse.BodyProcessor
java.net.http: High level HTTP API

### Uses of HttpResponse.BodyProcessor in java.net.http

Methods in java.net.http that return HttpResponse.BodyProcessor
`static HttpResponse.BodyProcessor<byte[]>` HttpResponse.`asByteArray()` Returns a `HttpResponse.BodyProcessor`<byte[]> which returns the response body as a `byte array`.
`static HttpResponse.BodyProcessor<Void>` HttpResponse.`asByteArrayConsumer(Consumer<byte[]> consumer)` Returns a response processor which supplies the response body to the given Consumer.
`static HttpResponse.BodyProcessor<Path>` HttpResponse.`asFile(Path file)` Returns a `HttpResponse.BodyProcessor`<`Path`> where the file is created if it does not already exist.
`static HttpResponse.BodyProcessor<Path>` HttpResponse.`asFile(Path file, OpenOption... openOptions)` Returns a `HttpResponse.BodyProcessor`<`Path`>.
`static HttpResponse.BodyProcessor<Path>` HttpResponse.`asFileDownload(Path directory, OpenOption... openOptions)` Returns a `HttpResponse.BodyProcessor`<`Path`> where the download directory is specified, but the filename is obtained from the Content-Disposition response header.
`static HttpResponse.BodyProcessor<InputStream>` HttpResponse.`asInputStream()` Returns a response body processor which provides an InputStream to read the body.
`static HttpResponse.BodyProcessor<String>` HttpResponse.`asString()` Returns a response processor which decodes the body using the character set specified in the `Content-encoding` response header.
`static HttpResponse.BodyProcessor<String>` HttpResponse.`asString(Charset charset)` Returns a `HttpResponse.BodyProcessor`<`String`>.
`static HttpResponse.BodyProcessor<Void>` HttpResponse.`ignoreBody()` Returns a response processor which ignores the response body.

Methods in java.net.http with parameters of type HttpResponse.BodyProcessor
`abstract <T> T` HttpResponse.`body(HttpResponse.BodyProcessor<T> processor)` Returns the body, blocking if necessary.
`abstract <T> CompletableFuture<T>` HttpResponse.`bodyAsync(HttpResponse.BodyProcessor<T> processor)` Returns a `CompletableFuture` of type T.