Hi, I got a problem whit the Http client. After th...
# ktor
e
Hi, I got a problem whit the Http client. After the new config the plugin is no longer on the client. I havent found any example on Installing it whit a intercept, as installs loks to get find pass the config block. Any one know how to get this to work or do i need to write a installable plugin?
Copy code
aHttpClient.plugin(HttpSend).intercept { request -> .... }
val newHttpClinet = aHttpClient.config { .... }
a
Interceptors for the
HttpSend
plugin and interceptors for the client’s pipelines aren’t copied because they aren’t part of the configuration. So yes, you have to write a plugin to copy interceptors for a new client.
1