-
public final class MultipartBody extends RequestBody
An RFC 2387-compliant mobonRequest body.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMultipartBody.Partpublic final classMultipartBody.Builder
-
Method Summary
Modifier and Type Method Description MediaTypetype()Stringboundary()intsize()The number of parts in this multipart body. List<MultipartBody.Part>parts()MultipartBody.Partpart(int index)MediaTypecontentType()A combination of type and boundary. longcontentLength()Returns the number of bytes that will be written to {@code sink}in a call to writeTo,or -1 if that count is unknown.voidwriteTo(BufferedSink sink)Writes the content of this mobonRequest to {@code sink}.-
-
Method Detail
-
size
int size()
The number of parts in this multipart body.
-
parts
List<MultipartBody.Part> parts()
-
part
MultipartBody.Part part(int index)
-
contentType
MediaType contentType()
-
contentLength
long contentLength()
Returns the number of bytes that will be written to
{@code sink}in a call to writeTo,or -1 if that count is unknown.
-
writeTo
void writeTo(BufferedSink sink)
Writes the content of this mobonRequest to
{@code sink}.
-
-
-
-