public class ResourceBody extends Object implements RequestBody
Resource类型的Http request body,主要发送编码后的表单数据或rest body(如JSON或XML)| Constructor and Description |
|---|
ResourceBody(Resource resource)
构造
|
| Modifier and Type | Method and Description |
|---|---|
static ResourceBody |
create(Resource resource)
创建 Http request body
|
String |
toString() |
void |
write(OutputStream out)
写出数据,不关闭流
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwriteClosepublic ResourceBody(Resource resource)
resource - Body内容,编码后public static ResourceBody create(Resource resource)
resource - body内容,编码后public void write(OutputStream out)
RequestBodywrite in interface RequestBodyout - out流Copyright © 2025. All rights reserved.