useDefaultTransformers

Enables body transformations for many common types like String, ByteArray, ByteReadChannel, etc. These transformations are applied to the request and response bodies.

The transformers will be used when the response body is received with a type:

val client = HttpClient()
val bytes = client.get("https://ktor.io")
.body<ByteArray>()

This flag is enabled by default. You might want to disable it if you want to write your own transformers or handle body manually.

For more details, see the defaultTransformers documentation.