ktor-http / io.ktor.http.content / ByteArrayContent / contentLength

contentLength

val contentLength: Long

Overrides OutgoingContent.contentLength

Specifies content length in bytes for this resource.

If null, the resources will be sent as Transfer-Encoding: chunked