Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for connectFail (0.07 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

          .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
          .assertLogMatch(Regex("""callFailed: java.net.UnknownHostException: reason"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun connectFail() {
        assumeNotWindows()
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server.enqueue(
          MockResponse.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("")
          .assertLogMatch(Regex("""<-- END HTTP \(\d+ms, binary 9-byte body omitted\)"""))
          .assertNoMoreLogs()
      }
    
      @Test
      fun connectFail() {
        setLevel(Level.BASIC)
        client =
          OkHttpClient.Builder()
            .dns { hostname: String? -> throw UnknownHostException("reason") }
            .addInterceptor(applicationInterceptor)
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CallTest.kt

            .build(),
        )
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.header("a\tb")).isEqualTo("c")
      }
    
      @Test
      fun connectFails() {
        server.shutdown()
        executeSynchronously("/")
          .assertFailure(IOException::class.java)
      }
    
      @Test
      fun requestBodySurvivesRetries() {
        server.enqueue(MockResponse())
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top