okhttp / okhttp3 / FormBody


class FormBody :RequestBody


Name Summary
Builder class Builder


Name Summary
size The number of key-value pairs in this form-encoded body.val size:Int


Name Summary
contentLength Returns the number of bytes that will be written to sink in a call to writeTo, or -1 if that count is unknown.fun contentLength():Long
contentType Returns the Content-Type header for this body.fun contentType():MediaType
encodedName fun encodedName(index:Int):String
encodedValue fun encodedValue(index:Int):String
name fun name(index:Int):String
value fun value(index:Int):String
writeTo Writes the content of this request to sink.fun writeTo(sink:BufferedSink):Unit