Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for Machen (0.2 sec)

  1. native-image-tests/src/main/resources/testlist.txt

    okhttp3.dnsoverhttps.DnsOverHttpsTest
    okhttp3.dnsoverhttps.DnsRecordCodecTest
    okhttp3.internal.UtilTest
    okhttp3.internal.authenticator.JavaNetAuthenticatorTest
    okhttp3.internal.cache.DiskLruCacheTest
    okhttp3.internal.cache2.FileOperatorTest
    okhttp3.internal.cache2.RelayTest
    okhttp3.internal.concurrent.TaskLoggerTest
    okhttp3.internal.concurrent.TaskRunnerRealBackendTest
    okhttp3.internal.concurrent.TaskRunnerTest
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu May 11 14:48:57 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

    import java.util.concurrent.Callable
    import java.util.concurrent.Executors
    import kotlin.test.assertFailsWith
    import okhttp3.TestUtil.threadFactory
    import okhttp3.internal.cache2.Relay.Companion.edit
    import okhttp3.internal.cache2.Relay.Companion.read
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    import okio.Pipe
    import okio.Source
    import okio.buffer
    import okio.source
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

       * the network, such as when the response is fully cached. The body of the returned response
       * should not be read.
       */
      @get:JvmName("networkResponse") val networkResponse: Response?,
      /**
       * Returns the raw response received from the cache. Will be null if this response didn't use
       * the cache. For conditional get requests the cache response and network response may both be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

        executeSynchronously("/", "Cache-Control", "only-if-cached")
          .assertCode(504)
          .assertBody("")
          .assertNoNetworkResponse()
          .assertNoCacheResponse()
      }
    
      @Test
      fun networkDropsOnConditionalGet() {
        client =
          client.newBuilder()
            .cache(cache)
            .build()
    
        // Seed the cache.
        server.enqueue(
          MockResponse(
    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)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/CacheResponse.kt

     */
    package okhttp3.recipes.kt
    
    import java.io.File
    import java.io.IOException
    import okhttp3.Cache
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    class CacheResponse(cacheDirectory: File) {
      private val client: OkHttpClient =
        OkHttpClient.Builder()
          .cache(
            Cache(
              directory = cacheDirectory,
              // 1 MiB.
              maxSize = 10L * 1024L * 1024L,
            ),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (2)
  6. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

      }
    
      companion object {
        /**
         * Cache control request directives that require network validation of responses. Note that such
         * requests may be assisted by the cache via conditional GET requests.
         */
        @JvmField
        val FORCE_NETWORK = commonForceNetwork()
    
        /**
         * Cache control request directives that uses the cache only, even if the cached response is
    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)
  7. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

      private lateinit var client: OkHttpClient
    
      @Before
      fun setUp() {
        context = ApplicationProvider.getApplicationContext<Application>()
        client =
          OkHttpClient.Builder()
            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  8. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              assertNotNull(it.cacheResponse)
              assertNull(it.networkResponse)
            }
    
          assertEquals(1, cache.hitCount())
          assertEquals(1, cache.networkCount())
          assertEquals(2, cache.requestCount())
        } finally {
          cache.delete()
        }
      }
    
      private fun OkHttpClient.get(url: String) {
        val request = Request.Builder().url(url).build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectInterceptor.kt

    import okhttp3.Response
    import okhttp3.internal.http.RealInterceptorChain
    
    /**
     * Opens a connection to the target server and proceeds to the next interceptor. The network might
     * be used for the returned response, or to validate a cached response with a conditional GET.
     */
    object ConnectInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

      }
    
    fun Request.Builder.commonCacheControl(cacheControl: CacheControl): Request.Builder {
      val value = cacheControl.toString()
      return when {
        value.isEmpty() -> removeHeader("Cache-Control")
        else -> header("Cache-Control", value)
      }
    }
    
    fun Request.Builder.commonGet(): Request.Builder = method("GET", null)
    
    fun Request.Builder.commonHead(): Request.Builder = method("HEAD", null)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top