- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for Larsen (0.15 sec)
-
okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z") } } @Test fun `cannot decode generalized time with offset`() { assertFailsWith<ProtocolException> { Adapters.GENERALIZED_TIME.fromDer("181332303139313231353139303231302d30383030".decodeHex()) }.also { expected -> assertThat(expected).hasMessage("Failed to parse GeneralizedTime 20191215190210-0800") } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 31.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
if (input.startsWith(":", startIndex = i)) { i++ } else if (input.startsWith(".", startIndex = i)) { // If we see a '.', rewind to the beginning of the previous group and parse as IPv4. if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null b += 2 // We rewound two bytes and then added four. break } else {
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/Headers.kt
* Returns the last value corresponding to the specified field parsed as an HTTP date, or null if * either the field is absent or cannot be parsed as a date. */ fun getDate(name: String): Date? = get(name)?.toHttpDateOrNull() /** * Returns the last value corresponding to the specified field parsed as an HTTP date, or null if * either the field is absent or cannot be parsed as a date. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
timeZone = utc set2DigitYearStart(Date(-631152000000L)) // 1950-01-01T00:00:00Z. } try { val parsed = dateFormat.parse(string) return parsed.time } catch (e: ParseException) { throw ProtocolException("Failed to parse UTCTime $string") } } internal fun formatUtcTime(date: Long): String { val utc = TimeZone.getTimeZone("GMT")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
} /** * Ignored due to incompatibilities between Android and Java on how non-ASCII subject alt names * are parsed. Android fails to parse these, which means we fall back to the CN. The RI does parse * them, so the CN is unused. */ @Test fun verifyNonAsciiSubjectAlt() { // Expecting actual: // ["bar.com", "è±å.co.jp"]
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val onlyIfCached: Boolean = cacheControl.onlyIfCached() val noTransform: Boolean = cacheControl.noTransform() val immutable: Boolean = cacheControl.immutable() val parse: CacheControl = CacheControl.parse(Headers.of()) } @Test @Disabled fun challenge() { val challenge = Challenge("", mapOf("" to "")) val scheme: String = challenge.scheme()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
*/ @get:JvmName("cacheControl") val cacheControl: CacheControl get() { var result = lazyCacheControl if (result == null) { result = CacheControl.parse(headers) lazyCacheControl = result } return result } @JvmName("-deprecated_url") @Deprecated( message = "moved to val",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt
import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.TestUtil.repeat import okhttp3.internal.concurrent.TaskFaker import okhttp3.internal.ws.WebSocketExtensions.Companion.parse import okio.ByteString.Companion.decodeHex import okio.ByteString.Companion.encodeUtf8 import okio.Pipe import okio.buffer import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.BeforeEach
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 01:59:58 GMT 2024 - 18.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
} catch (_: NumberFormatException) { defaultValue } } /** * Returns this as a non-negative integer, or 0 if it is negative, or [Int.MAX_VALUE] if it is too * large, or [defaultValue] if it cannot be parsed. */ internal fun String?.toNonNegativeInt(defaultValue: Int): Int { try { val value = this?.toLong() ?: return defaultValue return when { value > Int.MAX_VALUE -> Int.MAX_VALUE
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/CacheControl.kt
val FORCE_CACHE = commonForceCache() /** * Returns the cache directives of [headers]. This honors both Cache-Control and Pragma headers * if they are present. */ @JvmStatic fun parse(headers: Headers): CacheControl = commonParse(headers) }
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)