public static final class BlockingInputStreamAsyncRequestBody.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
BlockingInputStreamAsyncRequestBody |
build() |
BlockingInputStreamAsyncRequestBody.Builder |
contentLength(Long contentLength)
The content length of the output stream.
|
BlockingInputStreamAsyncRequestBody.Builder |
contentType(String contentType)
The content type of the output stream.
|
BlockingInputStreamAsyncRequestBody.Builder |
subscribeTimeout(Duration subscribeTimeout)
Defines how long it should wait for this AsyncRequestBody to be subscribed (to start streaming) before timing out.
|
public BlockingInputStreamAsyncRequestBody.Builder subscribeTimeout(Duration subscribeTimeout)
You may want to increase it if the request may not be executed right away.
subscribeTimeout - the timeoutpublic BlockingInputStreamAsyncRequestBody.Builder contentLength(Long contentLength)
contentLength - the content lengthpublic BlockingInputStreamAsyncRequestBody.Builder contentType(String contentType)
contentType - the content typepublic BlockingInputStreamAsyncRequestBody build()
Copyright © 2026. All rights reserved.