https://kotlinlang.org logo
#ktor
Title
# ktor
n

neerav

03/17/2023, 11:18 AM
Hello Can anyone please guide me or share document to learn on below Point related to Ktor Client 👇 In my application there could be 3 different HOST URLs. And 1 will be default which is used by default. Is there any way we can keep the URL dynamically ? Thanks
a

Aleksei Tirman [JB]

03/17/2023, 12:45 PM
You can use the DefaultRequest plugin for the default host URL. The other two hosts, you need to specify explicitly in the HTTP request builder.