Example usage for Java com.squareup.okhttp MultipartBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
MediaType | MIXED The "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order. |
MediaType | FORM The media-type multipart/form-data follows the rules of all multipart MIME data streams as outlined in RFC 2046. |
MediaType | type |
MultipartBuilder() Creates a new multipart builder that uses a random boundary token. | |
MultipartBuilder(String boundary) Creates a new multipart builder that uses boundary to separate parts. |
MultipartBuilder | addFormDataPart(String name, String value) Add a form data part to the body. |
MultipartBuilder | addFormDataPart(String name, String filename, RequestBody value) Add a form data part to the body. |
MultipartBuilder | addPart(Headers headers, RequestBody body) Add a part to the body. |
MultipartBuilder | addPart(RequestBody body) Add a part to the body. |
RequestBody | build() Assemble the specified parts into a request body. |