Hi. I am not able to completely understand the dif...
# ktor
m
Hi. I am not able to completely understand the difference between
host
and
baseUrl
in ktor. I need to set a
baseURL
for my project and I have been through this and this youtrack issues but both of them suggests a little different approach and I confused what to choose. I can set
host = "baseurl"
in
defaultrequest
and then simply use
Copy code
<http://httpClient.post|httpClient.post><T> {
    url("suffix here")
}
and it works. But am not sure if this is this the correct way and if it is then does it mean
host
works same as
baseURL
which we have in retrofit and okhttp.