Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for h3 (0.26 sec)

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

        assertThat(get("h2")).isEqualTo(Protocol.HTTP_2)
        assertThat(get("h2_prior_knowledge")).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
        assertThat(get("quic")).isEqualTo(Protocol.QUIC)
        assertThat(get("h3")).isEqualTo(Protocol.HTTP_3)
        assertThat(get("h3-29")).isEqualTo(Protocol.HTTP_3)
      }
    
      @Test
      fun testGetUnknown() {
        assertThrows(IOException::class.java) { get("tcp") }
      }
    
      @Test
      fun testToString() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

        try {
          val response = completableFuture.get(10, TimeUnit.SECONDS)
    
          assertEquals(200, response.code)
          assertEquals("h3", response.negotiatedProtocol)
          assertTrue(response.content.contains("Disallow"))
        } catch (ee: ExecutionException) {
          throw ee.cause?.cause ?: ee.cause!!
        }
      }
    
      data class Response(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       * exchange information. HTTP/3 runs over QUIC, which is published as RFC 9000.
       *
       * HTTP/3 is not natively supported by OkHttp, but provided to allow a theoretical interceptor
       * that provides support.
       */
      HTTP_3("h3"),
      ;
    
      /**
       * Returns the string used to identify this protocol for ALPN, like "http/1.1", "spdy/3.1" or
       * "h2".
       *
       * See also [IANA tls-extensiontype-values][iana].
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top