Modifier and Type | Method and Description |
---|---|
RequestBody |
ClientExecutionParams.getRequestBody() |
Modifier and Type | Method and Description |
---|---|
ClientExecutionParams<InputT,OutputT> |
ClientExecutionParams.withRequestBody(RequestBody requestBody) |
Modifier and Type | Method and Description |
---|---|
default Optional<RequestBody> |
ExecutionInterceptor.modifyHttpContent(Context.ModifyHttpRequest context,
ExecutionAttributes executionAttributes) |
Optional<RequestBody> |
Context.AfterMarshalling.requestBody()
The
RequestBody that represents the body of an HTTP request. |
Optional<RequestBody> |
InterceptorContext.requestBody() |
Modifier and Type | Method and Description |
---|---|
InterceptorContext.Builder |
InterceptorContext.Builder.requestBody(RequestBody requestBody) |
Modifier and Type | Method and Description |
---|---|
StreamingRequestMarshaller.Builder |
StreamingRequestMarshaller.Builder.requestBody(RequestBody requestBody) |
Modifier and Type | Method and Description |
---|---|
static RequestBody |
RequestBody.empty()
Creates a
RequestBody with no content. |
static RequestBody |
RequestBody.fromByteBuffer(ByteBuffer byteBuffer)
Creates a
RequestBody from a ByteBuffer . |
static RequestBody |
RequestBody.fromBytes(byte[] bytes)
Creates a
RequestBody from a byte array. |
static RequestBody |
RequestBody.fromContentProvider(ContentStreamProvider provider,
long contentLength,
String mimeType)
Creates a
RequestBody from the given ContentStreamProvider . |
static RequestBody |
RequestBody.fromFile(File file)
Create a
RequestBody using the full contents of the specified file. |
static RequestBody |
RequestBody.fromFile(Path path)
Create a
RequestBody using the full contents of the specified file. |
static RequestBody |
RequestBody.fromInputStream(InputStream inputStream,
long contentLength)
Creates a
RequestBody from an input stream. |
static RequestBody |
RequestBody.fromString(String contents)
Creates a
RequestBody from a string. |
static RequestBody |
RequestBody.fromString(String contents,
Charset cs)
Creates a
RequestBody from a string. |
Copyright © 2019. All rights reserved.