Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for HTTP_1_0 (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/StatusLine.kt

            protocol =
              when (httpMinorVersion) {
                0 -> Protocol.HTTP_1_0
                1 -> Protocol.HTTP_1_1
                else -> throw ProtocolException("Unexpected status line: $statusLine")
              }
          } else if (statusLine.startsWith("ICY ")) {
            // Shoutcast uses ICY instead of "HTTP/1.0".
            protocol = Protocol.HTTP_1_0
            codeStart = 4
          } else if (statusLine.startsWith("SOURCETABLE ")) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Protocol.kt

        @Throws(IOException::class)
        fun get(protocol: String): Protocol {
          // Unroll the loop over values() to save an allocation.
          @Suppress("DEPRECATION")
          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
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jun 23 18:58:57 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

      }
    
      @Test fun setProtocolsRejectsHttp10() {
        val builder = OkHttpClient.Builder()
        assertFailsWith<IllegalArgumentException> {
          builder.protocols(listOf(Protocol.HTTP_1_0, Protocol.HTTP_1_1))
        }
      }
    
      @Test fun certificatePinnerEquality() {
        val clientA = clientTestRule.newClient()
        val clientB = clientTestRule.newClient()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13.4K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       * [priorResponse] objects, which have its own [priorResponse].
       */
      @get:JvmName("request") val request: Request,
      /** Returns the HTTP protocol, such as [Protocol.HTTP_1_1] or [Protocol.HTTP_1_0]. */
      @get:JvmName("protocol") val protocol: Protocol,
      /** Returns the HTTP status message. */
      @get:JvmName("message") val message: String,
      /** Returns the HTTP status code. */
      @get:JvmName("code") val code: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

          this.platform = platform
          PublicSuffixDatabase.resetForTests()
        }
    
        fun alpnProtocolNames(protocols: List<Protocol>) = protocols.filter { it != Protocol.HTTP_1_0 }.map { it.toString() }
    
        val isAndroid: Boolean
          get() = PlatformRegistry.isAndroid
    
        /** Attempt to match the host runtime to a capable Platform implementation. */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

         *
         * If multiple protocols are specified, [ALPN][alpn] will be used to negotiate a transport.
         * Protocol negotiation is only attempted for HTTPS URLs.
         *
         * [Protocol.HTTP_1_0] is not supported in this set. Requests are initiated with `HTTP/1.1`. If
         * the server responds with `HTTP/1.0`, that will be exposed by [Response.protocol].
         *
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  7. okhttp/api/jvm/okhttp.api

    }
    
    public final class okhttp3/Protocol : java/lang/Enum {
    	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;
    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/api/android/okhttp.api

    }
    
    public final class okhttp3/Protocol : java/lang/Enum {
    	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;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          MockResponse
            .Builder()
            .status("HTTP/1.0 200 OK")
            .build(),
        )
        val response = getResponse(newRequest("/"))
        assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_0)
      }
    
      @Test
      fun http11SelectedProtocol() {
        server.enqueue(
          MockResponse
            .Builder()
            .status("HTTP/1.1 200 OK")
            .build(),
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 133.2K bytes
    - Viewed (0)
Back to top