Registry / http-client / ktor-client-core-jvm

ktor-client-core-jvm

JSON →
library3.5.0javamavenunverified

Ktor client core module for making HTTP requests in Kotlin applications.

<dependency> <groupId>io.ktor</groupId> <artifactId>ktor-client-core-jvm</artifactId> <version>3.5.0</version> </dependency>
INSTALL
IMPORT
SIG · KTOR-CLIENT-CORE-J
K
ktor-client-core-jvm
http-clientjavav3.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpClient
io.ktor.client.HttpClient

Creates an HTTP client and fetches a web page.

import io.ktor.client.* import io.ktor.client.request.* import io.ktor.client.statement.* suspend fun main() { val client = HttpClient() val response: HttpResponse = client.get("https://example.com") println(response.bodyAsText()) client.close() }
Debug
Known issues
gotchaKtor 3.x uses kotlinx.coroutines; ensure coroutine scope is active.
fix
Wrap calls in a coroutine scope like runBlocking { ... }.
affects: >=3.0
Upgrade
Version history
3.5.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
ktor-client-core-jvm — mvn dependency:get ktor-client-core-jvm · libregistry