Skip to content

//okhttp/okhttp3/FormBody

FormBody

[jvm]\ class FormBody : RequestBody

Types

Name Summary
Builder [jvm]
class Builder@JvmOverloadsconstructor(charset: Charset? = null)
Companion [jvm]
object Companion

Functions

Name Summary
contentLength [jvm]
open override fun contentLength(): Long
contentType [jvm]
open override fun contentType(): MediaType
encodedName [jvm]
fun encodedName(index: Int): String
encodedValue [jvm]
fun encodedValue(index: Int): String
isDuplex [jvm]
actual open fun isDuplex(): Boolean
isOneShot [jvm]
actual open fun isOneShot(): Boolean
name [jvm]
fun name(index: Int): String
value [jvm]
fun value(index: Int): String
writeTo [jvm]
open override fun writeTo(sink: BufferedSink)

Properties

Name Summary
size [jvm]
@get:JvmName(name = "size")
val size: Int
The number of key-value pairs in this form-encoded body.