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() |
MediaType |
contentType() |
MultipartBody.Part |
part(int index) |
List<MultipartBody.Part> |
parts() |
int |
size() |
MediaType |
type() |
void |
writeTo(BufferedSink 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
contentLength in class RequestBodyIOExceptionpublic void writeTo(BufferedSink sink) throws IOException
writeTo in class RequestBodyIOExceptionCopyright © 2019. All rights reserved.