Sorry, I think you need to specifically tell the target you want to achieve.
If you just want to add some pre-config before calling apis at Ktor construction step: check examples from Plugins(formerly known as Features)
https://ktor.io/docs/default-request.html
Especially, the Defatult Request Plugin.