- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for shallow (0.14 sec)
-
okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
import org.robolectric.annotation.Config import org.robolectric.shadow.api.Shadow @Config(shadows = [ShadowDnsResolver::class], sdk = [34]) @RunWith(RobolectricTestRunner::class) class AndroidAsyncDnsTest { @Test fun testDnsRequestInvalid() { val asyncDns = AndroidAsyncDns.IPv4 val shadowDns: ShadowDnsResolver = Shadow.extract(asyncDns.resolver) shadowDns.responder = {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 22 20:07:09 GMT 2024 - 1.6K bytes - Viewed (0) -
okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt
import android.os.CancellationSignal import java.net.InetAddress import java.util.concurrent.Executor import org.robolectric.annotation.Implementation import org.robolectric.annotation.Implements import org.robolectric.shadow.api.Shadow @Implements(DnsResolver::class) class ShadowDnsResolver { var responder: (Request) -> Unit = { it.callback.onAnswer(listOf(), 0) } data class Request( val network: Network?,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 22 20:07:09 GMT 2024 - 1.7K bytes - Viewed (1) -
native-image-tests/src/main/kotlin/okhttp3/GenerateClassList.kt
// Hanging. "okhttp3.CookiesTest", // Hanging. "okhttp3.WholeOperationTimeoutTest", ) /** * Run periodically to refresh the known set of working tests. * * TODO use filtering to allow skipping acceptable problem tests */ fun main() { val knownTestFile = File("native-image-tests/src/main/resources/testlist.txt") val testSelector = DiscoverySelectors.selectPackage("okhttp3") val testClasses =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
// Cause the cache trim job to fail. filesystem.setFaultyDelete(cacheDir / "a.0", true) taskFaker.runNextTask() // Confirm we still allow snapshot reads after a trim failure. assertValue("a", "aa", "aa") assertValue("b", "bb", "bbb") // Allow the test to clean up. filesystem.setFaultyDelete(cacheDir / "a.0", false) } @ParameterizedTest
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
} else -> return null } } private fun buildRedirectRequest( userResponse: Response, method: String, ): Request? { // Does the client allow redirects? if (!client.followRedirects) return null val location = userResponse.header("Location") ?: return null // Don't follow redirects to unsupported protocols.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:24:48 GMT 2024 - 12.1K bytes - Viewed (4) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
fun followRedirects(followRedirects: Boolean) = apply { this.followRedirects = followRedirects } /** * Configure this client to allow protocol redirects from HTTPS to HTTP and from HTTP to HTTPS. * Redirects are still first restricted by [followRedirects]. Defaults to true. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:21:33 GMT 2024 - 52K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
server.enqueue( MockResponse.Builder() .addHeader("Allow: GET, HEAD") .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS)) .addHeader("Cache-Control: max-age=0") .body("A") .build(), ) server.enqueue( MockResponse.Builder() .addHeader("Allow: GET, HEAD, PUT") .code(HttpURLConnection.HTTP_NOT_MODIFIED)
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/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt
} } /** A sink that writes outgoing data frames of a stream. This class is not thread safe. */ internal inner class FramingSink( /** True if either side has cleanly shut down this stream. We shall send no more bytes. */ var finished: Boolean = false, ) : Sink { /** * Buffer of outgoing data. This batches writes of small writes into this sink as larges frames
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 23.2K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
} if (mostRecentTrimFailed || mostRecentRebuildFailed) { // The OS has become our enemy! If the trim job failed, it means we are storing more data than // requested by the user. Do not allow edits so we do not go over that limit any further. If // the journal rebuild failed, the journal writer will not be active, meaning we will not be
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0)