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, wait
writeClose
public static BytesBody create(byte[] content)
content
- body内容,编码后public void write(OutputStream out)
RequestBody
write
in interface RequestBody
out
- out流Copyright © 2024. All rights reserved.