HttpIgnoreBody

Estimated reading time: 1 minute

This feature discards the body of the response.

This feature is defined in the class io.ktor.client.features.HttpIgnoreBody and no additional artifacts are required.

Install

val client = HttpClient(HttpClientEngine) {
    install(HttpIgnoreBody)
}

Use this if you are only interested in the response headers, and you cannot use the HEAD verb. This will use less memory and will execute faster.