| Package | Description |
|---|---|
| com.baidubce.http | |
| com.baidubce.util |
| Modifier and Type | Method and Description |
|---|---|
static BodyType |
BodyType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BodyType[] |
BodyType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
RequestBodyUtils.fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
BodyType bodyType)
使用指定的 BodyType 填充请求体
|
static void |
RequestBodyUtils.fillPayload(InternalRequest internalRequest,
AbstractBceRequest bceRequest,
BodyType bodyType,
String customContentType)
使用指定的 BodyType 填充请求体,支持自定义 contentType
|
static void |
RequestBodyUtils.fillPayloadAsByteArray(InternalRequest internalRequest,
byte[] data,
BodyType bodyType)
使用字节数组填充请求体(自动计算 contentLength)
|
static void |
RequestBodyUtils.fillPayloadAsByteArray(InternalRequest internalRequest,
byte[] data,
BodyType bodyType,
String customContentType)
使用字节数组填充请求体(支持自定义 contentType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
BodyType bodyType)
使用二进制流格式填充请求体(指定 BodyType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
Long contentLength,
BodyType bodyType)
使用二进制流格式填充请求体(显式传递 contentLength,指定 BodyType)
|
static void |
RequestBodyUtils.fillPayloadAsStream(InternalRequest internalRequest,
InputStream inputStream,
Long contentLength,
BodyType bodyType,
String customContentType)
使用二进制流格式填充请求体(完整参数版本,支持自定义 contentType)
|
Copyright © 2026. All rights reserved.