public class BytesBody extends Object implements RequestBody
| 构造器和说明 |
|---|
BytesBody(byte[] content)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 RequestBodyout - out流Copyright © 2022. All rights reserved.