this is how the GETRequest looks like ``` @Interna...
# ktor
d
this is how the GETRequest looks like
Copy code
@InternalSerializationApi
    suspend inline fun <reified T, reified K> GETRequest(
        path: String,
        success: (main: T) -> Unit,
        error: (error: K) -> Unit,
        noinline genericError: (error: Throwable) -> Unit
    ) {
        try {
            val data = httpApiClient.get(baseUrl + path) as T
            success.invoke(data)
        } catch (ex: Exception) {
            handleException(ex, genericError)
        }
    }