public final class MultipartBody extends RequestBody
| Modifier and Type | Class and Description |
|---|---|
static class |
MultipartBody.Builder |
static class |
MultipartBody.Part |
| Modifier and Type | Method and Description |
|---|---|
String |
boundary() |
long |
contentLength()
返回调用
RequestBody.writeTo(org.aoju.bus.core.io.segment.BufferSink)时写入sink的字节数,如果该计数未知,则返回-1 |
MediaType |
contentType() |
MultipartBody.Part |
part(int index) |
List<MultipartBody.Part> |
parts() |
int |
size() |
MediaType |
type() |
void |
writeTo(BufferSink sink)
将此请求的内容写入
sink |
public MediaType type()
public String boundary()
public int size()
public List<MultipartBody.Part> parts()
public MultipartBody.Part part(int index)
public MediaType contentType()
contentType in class RequestBodypublic long contentLength()
throws IOException
RequestBodyRequestBody.writeTo(org.aoju.bus.core.io.segment.BufferSink)时写入sink的字节数,如果该计数未知,则返回-1contentLength in class RequestBodyIOException - 异常public void writeTo(BufferSink sink) throws IOException
RequestBodysinkwriteTo in class RequestBodysink - 缓存区IOException - 异常信息Copyright © 2019. All rights reserved.