Java com.squareup.okhttp MultipartBuilder fields, constructors, methods, implement or subclass

Example usage for Java com.squareup.okhttp MultipartBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.squareup.okhttp MultipartBuilder.

The text is from its open source code.

Field

MediaTypeMIXED
The "mixed" subtype of "multipart" is intended for use when the body parts are independent and need to be bundled in a particular order.
MediaTypeFORM
The media-type multipart/form-data follows the rules of all multipart MIME data streams as outlined in RFC 2046.
MediaTypetype

Constructor

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.

Method

MultipartBuilderaddFormDataPart(String name, String value)
Add a form data part to the body.
MultipartBuilderaddFormDataPart(String name, String filename, RequestBody value)
Add a form data part to the body.
MultipartBuilderaddPart(Headers headers, RequestBody body)
Add a part to the body.
MultipartBuilderaddPart(RequestBody body)
Add a part to the body.
RequestBodybuild()
Assemble the specified parts into a request body.