Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for HTTP_1_1 (0.19 sec)

  1. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(request.body.readUtf8()).isEqualTo("request")
      }
    
      @Test
      fun testH2PriorKnowledgeServerFallback() {
        try {
          server.protocols = Arrays.asList(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.HTTP_1_1)
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo(
            "protocols containing h2_prior_knowledge cannot use other protocols: " +
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val request = Request.Builder().url(server.url("/").toString()).build()
        val response = client.newCall(request).execute()
        response.use {
          assertEquals(200, response.code)
          assertEquals(Protocol.HTTP_1_1, response.protocol)
        }
      }
    
      @Test
      fun testCustomTrustManagerWithAndroidCheck() {
        assumeNetwork()
    
        var withHostCalled = false
        var withoutHostCalled = false
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt

          } catch (e: IOException) {
            failWebSocket(e = e, isWriter = true)
          }
          return -1L
        }
      }
    
      companion object {
        private val ONLY_HTTP1 = listOf(Protocol.HTTP_1_1)
    
        /**
         * The maximum number of bytes to enqueue. Rather than enqueueing beyond this limit we tear down
         * the web socket! It's possible that we're writing faster than the peer can read.
         */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt

       */
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client
            .newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
        server.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
            .sslSocketFactory(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        assertThat(request.body?.utf8()).isEqualTo("request")
      }
    
      @Test
      fun testH2PriorKnowledgeServerFallback() {
        try {
          server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.HTTP_1_1)
          fail<Unit>()
        } catch (expected: IllegalArgumentException) {
          assertThat(expected.message).isEqualTo(
            "protocols containing h2_prior_knowledge cannot use other protocols: " +
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  7. okhttp/api/jvm/okhttp.api

    	public static final field Companion Lokhttp3/Protocol$Companion;
    	public static final field H2_PRIOR_KNOWLEDGE Lokhttp3/Protocol;
    	public static final field HTTP_1_0 Lokhttp3/Protocol;
    	public static final field HTTP_1_1 Lokhttp3/Protocol;
    	public static final field HTTP_2 Lokhttp3/Protocol;
    	public static final field HTTP_3 Lokhttp3/Protocol;
    	public static final field QUIC Lokhttp3/Protocol;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt

          server.useHttps(handshakeCertificates.sslSocketFactory())
          client =
            clientTestRule
              .newClientBuilder()
              .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
              .sslSocketFactory(
                handshakeCertificates.sslSocketFactory(),
                handshakeCertificates.trustManager,
              ).hostnameVerifier(RecordingHostnameVerifier())
              .build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 73.4K bytes
    - Viewed (0)
  9. okhttp/api/android/okhttp.api

    	public static final field Companion Lokhttp3/Protocol$Companion;
    	public static final field H2_PRIOR_KNOWLEDGE Lokhttp3/Protocol;
    	public static final field HTTP_1_0 Lokhttp3/Protocol;
    	public static final field HTTP_1_1 Lokhttp3/Protocol;
    	public static final field HTTP_2 Lokhttp3/Protocol;
    	public static final field HTTP_3 Lokhttp3/Protocol;
    	public static final field QUIC Lokhttp3/Protocol;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
Back to top