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

contentLength

open val contentLength: Long?

Specifies content length in bytes for this resource.

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