static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher) |
Returns a request body publisher whose body is retrieved from the
given Flow.Publisher .
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher,
long contentLength) |
Returns a request body publisher whose body is retrieved from the
given Flow.Publisher .
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.noBody() |
A request body publisher which sends no request body.
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofByteArray(byte[] buf) |
Returns a request body publisher whose body is the given byte array.
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofByteArray(byte[] buf,
int offset,
int length) |
Returns a request body publisher whose body is the content of the
given byte array of length bytes starting from the specified
offset .
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofByteArrays(Iterable<byte[]> iter) |
A request body publisher that takes data from an Iterable
of byte arrays.
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofFile(Path path) |
A request body publisher that takes data from the contents of a File.
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofInputStream(Supplier<? extends InputStream> streamSupplier) |
A request body publisher that reads its data from an InputStream .
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofString(String body) |
Returns a request body publisher whose body is the given
String , converted using the UTF_8
character set.
|
static HttpRequest.BodyPublisher |
HttpRequest.BodyPublishers.ofString(String s,
Charset charset) |
Returns a request body publisher whose body is the given
String , converted using the given character set.
|