Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 12 of 12 for HTTP_1_0 (0.03 seconds)

  1. 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].
         *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 51.5K bytes
    - Click Count (0)
  2. 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(),
        )
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
Back to Top