MultipartBody.Builder

Undocumented in source.

Constructors

this
this()
Undocumented in source.
this
this(string boundary)
Undocumented in source.

Members

Functions

addFormDataPart
Builder addFormDataPart(string name, string value)

Add a form data part to the body.

addFormDataPart
Builder addFormDataPart(string name, string value, string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
addFormDataPart
Builder addFormDataPart(string name, string filename, HttpBody requestBody)

Add a form data part to the body.

addPart
Builder addPart(HttpBody requestBody)

Add a part to the body.

addPart
Builder addPart(HttpFields headers, HttpBody requestBody)

Add a part to the body.

addPart
Builder addPart(Part part)

Add a part to the body.

build
MultipartBody build()

Assemble the specified parts into a request body.

enableChunk
Builder enableChunk()
Undocumented in source. Be warned that the author may not have intended to support it.
setType
Builder setType(MediaType type)

Set the MIME type. Expected values for {@code type} are {@link #FORM} (the default), {@link #ALTERNATIVE}, {@link #DIGEST}, {@link #PARALLEL} and {@link #MIXED}.

Meta