skipSavingBody

Deprecated

Skipping of body saving for a specific request is no longer allowed. Use client.prepareRequest(...).execute { ... } syntax to prevent saving the body in memory. This API is deprecated and will be removed in Ktor 4.0.0 If you were relying on this functionality, share your use case by commenting on this issue: https://youtrack.jetbrains.com/issue/KTOR-8367/

Prevent saving response body in memory for the specific request.

To disable the plugin for all requests use SaveBodyPluginConfig.disabled property:

val client = HttpClient {
install(SaveBodyPlugin) {
disabled = true
}
}

Report a problem