public final class ByteArrayAsyncRequestBody extends Object implements AsyncRequestBody
AsyncRequestBody for providing data from memory. This is created using static
methods on AsyncRequestBody| Constructor and Description |
|---|
ByteArrayAsyncRequestBody(byte[] bytes,
String mimetype) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Long> |
contentLength() |
String |
contentType() |
void |
subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitempty, forBlockingInputStream, forBlockingOutputStream, fromByteBuffer, fromBytes, fromFile, fromFile, fromInputStream, fromPublisher, fromString, fromStringadapt, buffer, doAfterOnCancel, doAfterOnComplete, doAfterOnError, filter, filter, flatMapIterable, limit, map, subscribepublic ByteArrayAsyncRequestBody(byte[] bytes,
String mimetype)
public Optional<Long> contentLength()
contentLength in interface AsyncRequestBodypublic String contentType()
contentType in interface AsyncRequestBodypublic void subscribe(org.reactivestreams.Subscriber<? super ByteBuffer> s)
subscribe in interface org.reactivestreams.Publisher<ByteBuffer>Copyright © 2022. All rights reserved.