public class BytesBody extends Object implements RequestBody
| Constructor and Description |
|---|
BytesBody(byte[] content)
构造
|
| Modifier and Type | Method and Description |
|---|---|
static BytesBody |
create(byte[] content)
创建 Http request body
|
void |
write(OutputStream out)
写出数据,不关闭流
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteClosepublic static BytesBody create(byte[] content)
content - body内容,编码后public void write(OutputStream out)
RequestBodywrite in interface RequestBodyout - out流Copyright © 2025. All rights reserved.