Kotlin 1.9.10 官方文档 中文版
data classes with more readable names. Connect HTTP client 1. In Greeting.kt , create a Ktor HTTPClient instance to execute network requests and parse the resulting JSON: import io.ktor.client.* class Greeting { private val platform: Platform = getPlatform() private val httpClient = HttpClient { install(ContentNegotiation) { json(Json { prettyPrint 2. In the greet() function, retrieve the information about rocket launches by calling the httpClient.get() method and find the latest launch: import io.ktor.client.call.* import io.ktor.client0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9data classes with more readable names. Connect HTTP client 1. In Greeting.kt , create a Ktor HTTPClient instance to execute network requests and parse the resulting JSON: import io.ktor.client.* class Greeting { private val platform: Platform = getPlatform() private val httpClient = HttpClient { install(ContentNegotiation) { json(Json { prettyPrint 2. In the greet() function, retrieve the information about rocket launches by calling the httpClient.get() method and find the latest launch: import io.ktor.client.call.* import io.ktor.client0 码力 | 2049 页 | 45.06 MB | 1 年前3
共 2 条
- 1













