ktor-client-core / io.ktor.client.utils / io.ktor.http.content.OutgoingContent

Extensions for io.ktor.http.content.OutgoingContent

wrapHeaders

fun OutgoingContent.wrapHeaders(block: (Headers) -> Headers): OutgoingContent

Generates a new OutgoingContent of the same abstract type but with OutgoingContent.headers transformed by the specified block.