public final class ByteBuffersAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody
for providing data from the supplied ByteBuffer
array. This is created
using static methods on AsyncRequestBody
AsyncRequestBody.fromBytes(byte[])
,
AsyncRequestBody.fromBytesUnsafe(byte[])
,
AsyncRequestBody.fromByteBuffer(ByteBuffer)
,
AsyncRequestBody.fromByteBufferUnsafe(ByteBuffer)
,
AsyncRequestBody.fromByteBuffers(ByteBuffer...)
,
AsyncRequestBody.fromByteBuffersUnsafe(ByteBuffer...)
,
AsyncRequestBody.fromString(String)
Modifier and Type | Method and Description |
---|---|
Optional<Long> |
contentLength() |
String |
contentType() |
static ByteBuffersAsyncRequestBody |
from(byte[] bytes) |
static ByteBuffersAsyncRequestBody |
from(String mimetype,
byte[] bytes) |
static ByteBuffersAsyncRequestBody |
of(ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(Long length,
ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(String mimetype,
ByteBuffer... buffers) |
static ByteBuffersAsyncRequestBody |
of(String mimetype,
Long length,
ByteBuffer... buffers) |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
empty, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromByteBuffers, fromByteBuffersUnsafe, fromByteBufferUnsafe, fromBytes, fromBytesUnsafe, fromFile, fromFile, fromFile, fromFile, fromInputStream, fromPublisher, fromRemainingByteBuffer, fromRemainingByteBuffers, fromRemainingByteBuffersUnsafe, fromRemainingByteBufferUnsafe, fromString, fromString, split, split
adapt, addTrailingData, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribe
public Optional<Long> contentLength()
contentLength
in interface AsyncRequestBody
public String contentType()
contentType
in interface AsyncRequestBody
public void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe
in interface org.reactivestreams.Publisher<ByteBuffer>
public static ByteBuffersAsyncRequestBody of(ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(Long length, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(String mimetype, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody of(String mimetype, Long length, ByteBuffer... buffers)
public static ByteBuffersAsyncRequestBody from(byte[] bytes)
public static ByteBuffersAsyncRequestBody from(String mimetype, byte[] bytes)
Copyright © 2023. All rights reserved.