ktor-utils / io.ktor.util / Attributes / take

take

open fun <T : Any> take(key: AttributeKey<T>): T

Removes an attribute with the specified key and returns its current value, throws an exception if an attribute doesn't exist