HTTP Client and WebSocket APIs
Returns a
BodySubscriber
considering the
given response status code and headers.
Returns a BodySubscriber
which buffers data before delivering
it to the given downstream subscriber.
Returns a response subscriber which discards the response body.
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber
, line by line.
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber
, line by line.
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber
.
Returns a body subscriber that forwards all response body to the
given Flow.Subscriber
.
Returns a BodySubscriber
whose response body value is that of
the result of applying the given function to the body object of the
given upstream
BodySubscriber
.
Returns a BodySubscriber
which stores the response body as a
byte array.
Returns a BodySubscriber
which provides the incoming body
data to the provided Consumer of Optional<byte[]>
.
Returns a BodySubscriber
which stores the response body in a
file opened with the given name.
Returns a BodySubscriber
which stores the response body in a
file opened with the given options and name.
Returns a
BodySubscriber
which streams the response body as
an
InputStream
.
Returns a
BodySubscriber
which streams the response body as
a
Stream
<String>
, where each string in the stream
corresponds to a line as defined by
BufferedReader.lines()
.
Returns a response subscriber which publishes the response body
through a Publisher<List<ByteBuffer>>
.
Returns a body subscriber which stores the response body as a
String
converted using the given Charset
.
HttpResponse.BodySubscribers. replacing (U value)
Returns a response subscriber which discards the response body.
Returns a BodySubscriber
which buffers data before delivering
it to the given downstream subscriber.
Returns a BodySubscriber
whose response body value is that of
the result of applying the given function to the body object of the
given upstream
BodySubscriber
.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2022, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .