HttpResponse.BodySubscriber<T> |
HttpResponse.BodyHandler.apply(int statusCode,
HttpHeaders responseHeaders) |
Returns a BodySubscriber considering the given
response status code and headers.
|
static HttpResponse.BodySubscriber<byte[]> |
HttpResponse.BodySubscriber.asByteArray() |
Returns a BodySubscriber which stores the response body as a
byte array.
|
static HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscriber.asByteArrayConsumer(Consumer<Optional<byte[]>> consumer) |
Returns a BodySubscriber which provides the incoming body
data to the provided Consumer of Optional<byte[]> .
|
static HttpResponse.BodySubscriber<Path> |
HttpResponse.BodySubscriber.asFile(Path file) |
Returns a BodySubscriber which stores the response body in a
file opened with the given name.
|
static HttpResponse.BodySubscriber<Path> |
HttpResponse.BodySubscriber.asFile(Path file,
OpenOption... openOptions) |
Returns a BodySubscriber which stores the response body in a
file opened with the given options and name.
|
static HttpResponse.BodySubscriber<InputStream> |
HttpResponse.BodySubscriber.asInputStream() |
Returns a BodySubscriber which streams the response body as
an InputStream .
|
static HttpResponse.BodySubscriber<String> |
HttpResponse.BodySubscriber.asString(Charset charset) |
Returns a body subscriber which stores the response body as a
String converted using the given Charset .
|
static <T> HttpResponse.BodySubscriber<T> |
HttpResponse.BodySubscriber.buffering(HttpResponse.BodySubscriber<T> downstream,
int bufferSize) |
Returns a BodySubscriber which buffers data before delivering
it to the given downstream subscriber.
|
static <U> HttpResponse.BodySubscriber<U> |
HttpResponse.BodySubscriber.discard(U value) |
Returns a response subscriber which discards the response body.
|
static <S extends Flow.Subscriber<? super List<ByteBuffer>>> HttpResponse.BodySubscriber<Void> |
HttpResponse.BodySubscriber.fromSubscriber(S subscriber) |
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber .
|
static <S extends Flow.Subscriber<? super List<ByteBuffer>>,T> HttpResponse.BodySubscriber<T> |
HttpResponse.BodySubscriber.fromSubscriber(S subscriber,
Function<S,T> finisher) |
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber .
|