//okhttp/okhttp3/MultipartBody
MultipartBody¶
[jvm]\ class MultipartBody : RequestBody
An RFC 2387-compliant request body.
Types¶
| Name | Summary |
|---|---|
| Builder | [jvm] class Builder@JvmOverloadsconstructor(boundary: String = UUID.randomUUID().toString()) |
| Companion | [jvm] object Companion |
| Part | [jvm] class Part |
Functions¶
| Name | Summary |
|---|---|
| contentLength | [jvm] open override fun contentLength(): Long |
| contentType | [jvm] open override fun contentType(): MediaType A combination of type and boundaryByteString. |
| isDuplex | [jvm] actual open fun isDuplex(): Boolean |
| isOneShot | [jvm] actual open fun isOneShot(): Boolean |
| part | [jvm] fun part(index: Int): MultipartBody.Part |
| writeTo | [jvm] open override fun writeTo(sink: BufferedSink) |
Properties¶
| Name | Summary |
|---|---|
| boundary | [jvm] @get:JvmName(name = "boundary") val boundary: String |
| parts | [jvm] @get:JvmName(name = "parts") val parts: List<MultipartBody.Part> |
| size | [jvm] @get:JvmName(name = "size") val size: Int The number of parts in this multipart body. |
| type | [jvm] @get:JvmName(name = "type") val type: MediaType |