the call is: ``` private val client = HttpClie...
# ktor
a
the call is:
Copy code
private val client = HttpClient {
        install(JsonFeature) {
            serializer = KotlinxSerializer(JSON.nonstrict)
        }
    }

    suspend fun getWeather(cityName: String): Response<WeatherResponse> {
        return try {
            client.get<WeatherResponse>("<https://api.openweathermap.org/data/2.5/weather?q=$cityName>" +
                    "&APPID=MYOPENWEATHERAPI")
                    .let { Response.success(it) }
        } catch (exception: Exception) {
            Response.failure(exception)
        }