I feel like something <like> this should be part of the Ktor stdlib
e
I feel like something like this should be part of the Ktor stdlib