Shan
03/25/2020, 11:10 PMhost
? Doing this is not working:
val httpClient = HttpClient(Android) {
defaultRequest {
contentType(ContentType.Application.Json)
url {
host = currentBuildEnvironment.defaultEndpoint
protocol = URLProtocol.HTTPS
}
}
}
//elsewhere..
fun makeRequest() = <http://httpClient.post|httpClient.post> {
url {
encodedPath = "/endpoint"
host = currentBuildEnvironment.otherEndpoint
}
body = //etc
}
It's using defaultEndpoint
instead of otherEndpoint
. Am I missing something here?Shan
03/25/2020, 11:11 PMShan
03/25/2020, 11:41 PMOsman Saral
12/24/2021, 11:00 PM