- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 72 for least (0.14 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
/** * Quick and dirty pattern to differentiate IP addresses from hostnames. This is an approximation * of Android's private InetAddress#isNumeric API. * * This matches IPv6 addresses as a hex string containing at least one colon, and possibly * including dots after the first colon. It matches IPv4 addresses as strings containing only * decimal digits and dots. This pattern matches strings like "a:.23" and "54" that are neither IP
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/DeferredSocketAdapter.kt
* * We use this because eager classpath checks cause confusion and excessive logging in Android, * and we can't rely on classnames after proguard, so are probably best served by falling through * to a situation of trying our least likely noisiest options. */ class DeferredSocketAdapter(private val socketAdapterFactory: Factory) : SocketAdapter { private var delegate: SocketAdapter? = null override fun isSupported(): Boolean { return true
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
okhttp-tls/src/test/java/okhttp3/tls/HandshakeCertificatesTest.kt
.signedBy(intermediate) .build() val handshakeCertificates = HandshakeCertificates.Builder() .addTrustedCertificate(root.certificate) // BouncyCastle requires at least one .heldCertificate(certificate, intermediate.certificate) .build() assertPrivateKeysEquals( certificate.keyPair.private, handshakeCertificates.keyManager.getPrivateKey("private"),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 7.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MultipartReader.kt
1 -> { // "--": No more parts. if (whitespace) throw ProtocolException("unexpected characters after boundary") if (partCount == 0) throw ProtocolException("expected at least 1 part") noMoreParts = true return null } 2, 3 -> { // " " or "\t" Ignore whitespace and keep looking. whitespace = true
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
// Connection is pooled! assertThat(server.takeRequest().sequenceNumber).isEqualTo(1) } @Test fun streamDiscardingIsTimely() { // This response takes at least a full second to serve: 10,000 bytes served 100 bytes at a time. server.enqueue( MockResponse.Builder() .body(Buffer().write(ByteArray(10000))) .throttleBody(100, 10, TimeUnit.MILLISECONDS)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
// character in that label return false } // Optimization: check whether hostname is too short to match the pattern. hostName must be at // least as long as the pattern because asterisk must match the whole left-most label and // hostname starts with a non-empty label. Thus, asterisk has to match one or more characters. if (hostname.length < pattern.length) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 7.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionSpecTest.kt
.isEqualTo("At least one TLS version is required") } } @Test fun noCipherSuites() { assertFailsWith<IllegalArgumentException> { ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .cipherSuites(*arrayOf<CipherSuite>()) .build() }.also { expected -> assertThat(expected.message) .isEqualTo("At least one cipher suite is required") } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 14.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt
private val postponedRoutes = mutableListOf<Route>() init { resetNextProxy(address.url, address.proxy) } /** * Returns true if there's another set of routes to attempt. Every address has at least one route. */ operator fun hasNext(): Boolean = hasNextProxy() || postponedRoutes.isNotEmpty() @Throws(IOException::class) operator fun next(): Selection { if (!hasNext()) throw NoSuchElementException()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Mar 06 17:33:38 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/BitString.kt
import okio.ByteString /** * Like a [ByteString], but whose bits are not necessarily a strict multiple of 8. */ internal data class BitString( val byteString: ByteString, /** 0-7 unused bits in the last byte. */ val unusedBitsCount: Int, ) { // Avoid Long.hashCode(long) which isn't available on Android 5. override fun hashCode(): Int { var result = 0 result = 31 * result + byteString.hashCode()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt
fun frameCount(): Int = frameCount fun sendFrame(): Http2Writer { outFrames.add(OutFrame(frameCount++, bytesOut.size, false)) return writer } /** * Shortens the last frame from its original length to `length`. This will cause the peer to * close the socket as soon as this frame has been written; otherwise the peer stays open until * explicitly closed. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 8.7K bytes - Viewed (0)