Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HTTP_1_1 (0.18 sec)

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

        enableProtocol(protocol)
        server.enqueue(
          MockResponse(body = "A"),
        )
        client =
          client.newBuilder()
            .protocols(Arrays.asList(protocol, Protocol.HTTP_1_1))
            .build()
        val response = getResponse(newRequest("/"))
        assertThat(response.protocol).isEqualTo(protocol)
        assertContent("A", response)
      }
    
      @Test
    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

        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.protocols =
          when {
            http2 -> listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)
            else -> listOf(Protocol.HTTP_1_1)
          }
        server.enqueue(MockResponse(inTunnel = true))
        client =
          client.newBuilder()
            .sslSocketFactory(
              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)
Back to top