- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 199 for elseif (0.15 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt
tag: T?, ) = apply { if (tag == null) { if (tags.isNotEmpty()) { (tags as MutableMap).remove(type) } } else { val mutableTags: MutableMap<KClass<*>, Any> = when { tags.isEmpty() -> mutableMapOf<KClass<*>, Any>().also { tags = it } else -> tags as MutableMap<KClass<*>, Any> } mutableTags[type] = tag } } fun Request.commonToString(): String =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Settings.kt
return if (bit and set != 0) values[ENABLE_PUSH] == 1 else defaultValue } fun getMaxConcurrentStreams(): Int { val bit = 1 shl MAX_CONCURRENT_STREAMS return if (bit and set != 0) values[MAX_CONCURRENT_STREAMS] else Int.MAX_VALUE } fun getMaxFrameSize(defaultValue: Int): Int { val bit = 1 shl MAX_FRAME_SIZE return if (bit and set != 0) values[MAX_FRAME_SIZE] else defaultValue }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt
url!!.port != defaultPort(url.scheme) -> Integer.toString(url.port) else -> "" } val effectiveQuery = when { url.encodedQuery != null -> "?" + url.encodedQuery else -> "" } val effectiveFragment = when { url.encodedFragment != null -> "#" + url.encodedFragment else -> "" } val effectiveHost = when {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt
0 -> Protocol.HTTP_1_0 1 -> Protocol.HTTP_1_1 else -> throw ProtocolException("Unexpected status line: $statusLine") } } else if (statusLine.startsWith("ICY ")) { // Shoutcast uses ICY instead of "HTTP/1.0". protocol = Protocol.HTTP_1_0 codeStart = 4 } else if (statusLine.startsWith("SOURCETABLE ")) { // NTRIP r1 uses SOURCETABLE instead of HTTP/1.1
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 3.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/BouncyCastlePlatform.kt
} else { super.configureTlsExtensions(sslSocket, hostname, protocols) } } override fun getSelectedProtocol(sslSocket: SSLSocket): String? = if (sslSocket is BCSSLSocket) { when (val protocol = (sslSocket as BCSSLSocket).applicationProtocol) { // Handles both un-configured and none selected. null, "" -> null else -> protocol } } else {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.3K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt
this.path = path val scheme = if (socket is SSLSocket) "https" else "http" val localPort = socket.localPort val hostAndPort = headers[":authority"] ?: headers["Host"] ?: when (val inetAddress = socket.localAddress) { is Inet6Address -> "[${inetAddress.hostAddress}]:$localPort" else -> "${inetAddress.hostAddress}:$localPort" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 3.8K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
connectTls(sslSocket, connectionSpec) user.secureConnectEnd(handshake) } else { socket = rawSocket protocol = when { Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols -> Protocol.H2_PRIOR_KNOWLEDGE else -> Protocol.HTTP_1_1 } } val connection = RealConnection(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 18.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
// Read a token68, a sequence of parameters, or nothing. val commaPrefixed = skipCommasAndWhitespace() peek = readToken() if (peek == null) { if (!exhausted()) return // Expected a token; got something else. result.add(Challenge(schemeName, emptyMap())) return } var eqCount = skipAll('='.code.toByte()) val commaSuffixed = skipCommasAndWhitespace()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt
serverNoContextTakeover = true } else -> { unexpectedValues = true // Unexpected parameter. } } } } else -> { unexpectedValues = true // Unexpected extension. } } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.1K bytes - Viewed (0)