- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for if (0.19 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
override fun contentLength(): Long { return if (uploadKind === TransferKind.CHUNKED) -1L else n.toLong() } override fun writeTo(sink: BufferedSink) { if (writeKind == WriteKind.BYTE_BY_BYTE) { for (i in 0 until n) { sink.writeByte('x'.code) } } else { val buf = ByteArray(if (writeKind == WriteKind.SMALL_BUFFERS) 256 else 64 * 1024)
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/test/java/okhttp3/CallTest.kt
platform.assumeNotConscrypt() val tlsFallbackScsv = "TLS_FALLBACK_SCSV" val supportedCiphers = listOf(*handshakeCertificates.sslSocketFactory().supportedCipherSuites) if (!supportedCiphers.contains(tlsFallbackScsv)) { // This only works if the client socket supports TLS_FALLBACK_SCSV. return } server.useHttps(handshakeCertificates.sslSocketFactory())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
MockResponse.Builder() .addHeader("ETag: v1") .build(), ) assertThat(conditionalRequest.headers["If-None-Match"]).isEqualTo("v1") } /** If both If-Modified-Since and If-None-Match conditions apply, send only If-None-Match. */ @Test fun etagAndExpirationDateInThePast() { val lastModifiedDate = formatDate(-2, TimeUnit.HOURS) val conditionalRequest =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at https://mozilla.org/MPL/2.0/. // Please pull this list from, and only from https://publicsuffix.org/list/public_suffix_list.dat, // rather than any other VCS sites. Pulling from any other URL is not guaranteed to be supported.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 240.3K bytes - Viewed (3)