okhttp / okhttp3 / FormBody / contentLength

contentLength

fun contentLength(): Long

Overrides RequestBody.contentLength

Returns the number of bytes that will be written to sink in a call to writeTo, or -1 if that count is unknown.