Md Hanif
12/24/2020, 2:58 PMhost 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
<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.