Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SPDY_3 (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/Protocol.kt

          return when (protocol) {
            HTTP_1_0.protocol -> HTTP_1_0
            HTTP_1_1.protocol -> HTTP_1_1
            H2_PRIOR_KNOWLEDGE.protocol -> H2_PRIOR_KNOWLEDGE
            HTTP_2.protocol -> HTTP_2
            SPDY_3.protocol -> SPDY_3
            QUIC.protocol -> QUIC
            else -> {
              // Support HTTP3 draft like h3-29
              if (protocol.startsWith(HTTP_3.protocol)) HTTP_3 else throw IOException("Unexpected protocol: $protocol")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:33 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ProtocolTest.kt

    class ProtocolTest {
      @Test
      fun testGetKnown() {
        assertThat(get("http/1.0")).isEqualTo(Protocol.HTTP_1_0)
        assertThat(get("http/1.1")).isEqualTo(Protocol.HTTP_1_1)
        assertThat(get("spdy/3.1")).isEqualTo(Protocol.SPDY_3)
        assertThat(get("h2")).isEqualTo(Protocol.HTTP_2)
        assertThat(get("h2_prior_knowledge")).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
        assertThat(get("quic")).isEqualTo(Protocol.QUIC)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        }
      }
    
      @Test fun spdy3IsRemovedFromProtocols() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            Protocol.SPDY_3,
          )
        val client =
          OkHttpClient.Builder()
            .protocols(protocols)
            .build()
        assertThat(client.protocols).containsExactly(Protocol.HTTP_1_1)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

              "protocols must not contain null"
            }
    
            // Remove protocols that we no longer support.
            @Suppress("DEPRECATION")
            protocolsCopy.remove(Protocol.SPDY_3)
    
            if (protocolsCopy != this.protocols) {
              this.routeDatabase = null
            }
    
            // Assign as an unmodifiable list. This is effectively immutable.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:21:33 UTC 2024
    - 52K bytes
    - Viewed (0)
  5. okhttp/api/okhttp.api

    	public static final field HTTP_2 Lokhttp3/Protocol;
    	public static final field HTTP_3 Lokhttp3/Protocol;
    	public static final field QUIC Lokhttp3/Protocol;
    	public static final field SPDY_3 Lokhttp3/Protocol;
    	public static final fun get (Ljava/lang/String;)Lokhttp3/Protocol;
    	public static fun getEntries ()Lkotlin/enums/EnumEntries;
    	public fun toString ()Ljava/lang/String;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top