- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 97 for require (0.19 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt
open fun getSelectedProtocol(sslSocket: SSLSocket): String? = null /** For MockWebServer. This returns the inbound SNI names. */ @SuppressLint("NewApi") @IgnoreJRERequirement // This function is overridden to require API >= 24. open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> { val session = sslSocket.session as? ExtendedSSLSession ?: return listOf()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 9.8K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
if (address[11] != 255.toByte()) return false return true } /** Encodes an IPv4 address in canonical form according to RFC 4001. */ internal fun inet4AddressToAscii(address: ByteArray): String { require(address.size == 4) return Buffer() .writeDecimalLong((address[0] and 0xff).toLong()) .writeByte('.'.code) .writeDecimalLong((address[1] and 0xff).toLong()) .writeByte('.'.code)
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) -
docs/changelogs/changelog_4x.md
* Fix: Retain binary-compatibility in `okhttp3.internal.HttpMethod`. Naughty third party SDKs import this and we want to ease upgrades for their users. ## Version 4.0.0-RC2 _2019-06-21_ * New: Require Kotlin 1.3.40. * New: Change the Kotlin API from `File.toRequestBody()` to `File.asRequestBody()` and `BufferedSource.toResponseBody()` to `BufferedSource.asResponseBody()`. If the returned value
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt
when (val label = match.groups[1]!!.value) { "CERTIFICATE" -> { require(certificatePem == null) { "string includes multiple certificates" } certificatePem = match.groups[0]!!.value // Keep --BEGIN-- and --END-- for certificates. } "PRIVATE KEY" -> { require(pkcs8Base64 == null) { "string includes multiple private keys" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 21.6K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
apply { val maxAgeSeconds = maxAge.inWholeSeconds require(maxAgeSeconds >= 0) { "maxAge < 0: $maxAgeSeconds" } this.maxAgeSeconds = maxAgeSeconds.commonClampToInt() } fun maxStale(maxStale: Duration) = apply { val maxStaleSeconds = maxStale.inWholeSeconds require(maxStaleSeconds >= 0) { "maxStale < 0: $maxStaleSeconds" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 10K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
val status: String val code: Int get() { val statusParts = status.split(' ', limit = 3) require(statusParts.size >= 2) { "Unexpected status: $status" } return statusParts[1].toInt() } val message: String get() { val statusParts = status.split(' ', limit = 3) require(statusParts.size >= 2) { "Unexpected status: $status" } return statusParts[2] } val headers: Headers
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
init { if (bytesRemaining == 0L) { responseBodyComplete() } } override fun read( sink: Buffer, byteCount: Long, ): Long { require(byteCount >= 0L) { "byteCount < 0: $byteCount" } check(!closed) { "closed" } if (bytesRemaining == 0L) return -1 val read = super.read(sink, minOf(bytesRemaining, byteCount)) if (read == -1L) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
flags: Int, ) { if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) { logger.fine(frameLog(false, streamId, length, type, flags)) } require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" } require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" } sink.writeMedium(length) sink.writeByte(type and 0xff) sink.writeByte(flags and 0xff)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 11.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
// seconds are not supported by this syntax. require(year >= 1601) require(month != -1) require(dayOfMonth in 1..31) require(hour in 0..23) require(minute in 0..59) require(second in 0..59) GregorianCalendar(UTC).apply { isLenient = false set(Calendar.YEAR, year)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:12:05 GMT 2024 - 23.1K bytes - Viewed (0)