Is it possible to update dynamically the host adde...
# ktor
j
Is it possible to update dynamically the host added in the default request? It needs to be changed dynamically, for example: • foo.base.url.combar.base.url.combaz.base.url.com
a
You can override it by mutating the HttpRequestBuilder when making a request. Otherwise, no.
j
But I cannot get the default request host, no?
a
What do you mean?
You can't update the DefaultRequest's plugin configuration once the plugin is installed
j
Something like:
host = "$region.$host"
, but
host
is empty