{"id":70968,"library":"ktor-client-apache","title":"Ktor Client Apache","description":"An HTTP client engine for Ktor based on Apache HttpClient, enabling asynchronous HTTP requests in Kotlin applications.","status":"active","version":"3.4.2","language":"java","source_language":null,"source_url":"https://github.com/ktorio/ktor","tags":["http","client","kotlin","ktor"],"install":[{"cmd":"<dependency>\n  <groupId>io.ktor</groupId>\n  <artifactId>ktor-client-apache</artifactId>\n  <version>3.4.2</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'io.ktor:ktor-client-apache:3.4.2'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"HttpClient","correct":"io.ktor.client.HttpClient"}],"quickstart":{"code":"import io.ktor.client.*\nimport io.ktor.client.request.*\nimport io.ktor.client.statement.*\n\nsuspend fun main() {\n    val client = HttpClient()\n    val response: HttpResponse = client.get(\"https://example.com\")\n    println(response.bodyAsText())\n    client.close()\n}","lang":"kotlin","description":"Creates an HTTP client and performs a GET request."},"warnings":[{"fix":"Add kotlinx-coroutines-core dependency and use a coroutine scope (e.g., runBlocking).","message":"Ktor 3.x uses kotlinx.coroutines and requires coroutine context; ensure you have the correct coroutine dependencies.","severity":"gotcha","affected_versions":">=3.0.0"}],"env_vars":null,"search_vec":"'apach':3,12 'applic':20 'asynchron':15 'base':10 'client':2,6,22 'enabl':14 'engin':7 'http':5,16,21 'httpclient':13 'kotlin':19,23 'ktor':1,9,24 'request':17","created_at":"2026-06-17T18:21:12.004632+00:00","updated_at":"2026-06-17T18:21:12.004632+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/ktorio/ktor","github":"https://github.com/ktorio/ktor","docs":"https://appdoc.app/artifact/io.ktor/ktor-client-apache/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-client"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}