- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for OrEmpty (0.09 sec)
-
samples/guide/src/test/kotlin/okhttp3/AllMainsTest.kt
"$prefix/samples/guide/src/main/java/okhttp3/recipes", "$prefix/samples/guide/src/main/java/okhttp3/recipes/kt", ).map { File(it) } return directories.flatMap { it.listFiles().orEmpty().filter { f -> f.isFile }.toList() } } internal class MainTestProvider : SimpleProvider() { override fun arguments(): List<Any> { val mainFiles = mainFiles() return mainFiles.map {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt
val url = url ?: throw IOException("No url provided") request.url(url) data?.let { request.method(requestMethod, it.toRequestBody(mediaType())) } for (header in headers.orEmpty()) { val parts = header.split(':', limit = 2) if (!isSpecialHeader(parts[0])) { request.header(parts[0], parts[1]) } } referer?.let { request.header("Referer", it) }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.7K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/CustomTrust.kt
} throw IOException("Unexpected code $response") } println(response.body.string()) for (peerCertificate in response.handshake?.peerCertificates.orEmpty()) { println((peerCertificate as X509Certificate).subjectDN) } } } } fun main() { CustomTrust().run()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt
for (i in 0 until size) { if (name.equals(name(i), ignoreCase = true)) { if (result == null) result = ArrayList(2) result.add(value(i)) } } return result?.toList().orEmpty() } internal fun Headers.commonIterator(): Iterator<Pair<String, String>> { return Array(size) { name(it) to value(it) }.iterator() } internal fun Headers.commonNewBuilder(): Headers.Builder {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.9K bytes - Viewed (0)