Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for catch (0.16 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

                  url = server.url("/b"),
                  body = transferKind.newRequestBody(requestBody),
                ),
              )
            assertContent("B", response)
            break
          } catch (socketException: IOException) {
            // If there's a socket exception, this must have a streamed request body.
            assertThat(j).isEqualTo(0)
    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)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

      @Test
      fun cancelImmediatelyAfterEnqueue() {
        server.enqueue(MockResponse())
        val latch = CountDownLatch(1)
        client =
          client.newBuilder()
            .addNetworkInterceptor(
              Interceptor { chain: Interceptor.Chain ->
                try {
                  latch.await()
                } catch (e: InterruptedException) {
                  throw AssertionError(e)
                }
    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)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

        assertThat(get(url).body.string()).isEqualTo("B")
        assertThat(server.takeRequest().headers["If-None-Match"]).isNull()
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v1")
        assertThat(server.takeRequest().headers["If-None-Match"]).isEqualTo("v2")
      }
    
      @Test
      fun combinedCacheHeadersCanBeNonAscii() {
    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)
  4. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    // walter : 2014-11-13 Sandvik AB
    walter
    
    // wang : 2013-10-24 Zodiac Wang Limited
    wang
    
    // wanggou : 2014-12-18 Amazon Registry Services, Inc.
    wanggou
    
    // watch : 2013-11-14 Binky Moon, LLC
    watch
    
    // watches : 2014-12-22 Identity Digital Limited
    watches
    
    // weather : 2015-01-08 International Business Machines Corporation
    weather
    
    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)
Back to top