HttpResponse.BodyProcessor<T> |
HttpResponse.BodyHandler.apply(int statusCode,
HttpHeaders responseHeaders) |
Returns a BodyProcessor considering the given response status
code and headers.
|
static HttpResponse.BodyProcessor<byte[]> |
HttpResponse.BodyProcessor.asByteArray() |
Returns a BodyProcessor which stores the response body as a
byte array.
|
static HttpResponse.BodyProcessor<Void> |
HttpResponse.BodyProcessor.asByteArrayConsumer(Consumer<Optional<byte[]>> consumer) |
Returns a BodyProcessor which provides the incoming body
data to the provided Consumer of Optional<byte[]> .
|
static HttpResponse.BodyProcessor<Path> |
HttpResponse.BodyProcessor.asFile(Path file) |
Returns a BodyProcessor which stores the response body in a
file opened with the given name.
|
static HttpResponse.BodyProcessor<Path> |
HttpResponse.BodyProcessor.asFile(Path file,
OpenOption... openOptions) |
Returns a BodyProcessor which stores the response body in a
file opened with the given options and name.
|
static HttpResponse.BodyProcessor<String> |
HttpResponse.BodyProcessor.asString(Charset charset) |
Returns a body processor which stores the response body as a
String converted using the given Charset .
|
static <U> HttpResponse.BodyProcessor<U> |
HttpResponse.BodyProcessor.discard(U value) |
Returns a response processor which discards the response body.
|