Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for HTTP_1_1 (0.42 sec)

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

                  sslSocketFactory,
                  handshakeCertificates.trustManager,
                )
    
                when (socketMode.protocol) {
                  HTTP_2 -> protocols(listOf(HTTP_2, HTTP_1_1))
                  HTTP_1_1 -> protocols(listOf(HTTP_1_1))
                  else -> TODO()
                }
    
                val serverSslSocketFactory =
                  object : DelegatingSSLSocketFactory(sslSocketFactory) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          OkHttpClient.Builder()
            .protocols(nullHostileProtocols)
            .build()
        assertEquals(
          listOf(Protocol.HTTP_1_1),
          client.protocols,
        )
      }
    
      @Test fun nullProtocolInList() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            null,
          )
        assertFailsWith<IllegalArgumentException> {
          OkHttpClient.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_1_1)
        responseBodyFail(Protocol.HTTP_1_1)
      }
    
      @Test
      fun responseBodyFailHttp2OverHttps() {
        platform.assumeHttp2Support()
        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        responseBodyFail(Protocol.HTTP_2)
      }
    
      @Test
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/platform/android/AndroidSocketAdapterTest.kt

    import java.security.Provider
    import javax.net.ssl.SSLContext
    import javax.net.ssl.SSLSocket
    import okhttp3.DelegatingSSLSocket
    import okhttp3.DelegatingSSLSocketFactory
    import okhttp3.Protocol.HTTP_1_1
    import okhttp3.Protocol.HTTP_2
    import okhttp3.testing.PlatformRule
    import org.conscrypt.Conscrypt
    import org.junit.Assert.assertFalse
    import org.junit.Assert.assertNotNull
    import org.junit.Assert.assertNull
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http/StatusLineTest.kt

        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
        assertThat(statusLine.code).isEqualTo(code)
      }
    
      @Test
      fun emptyMessage() {
        val version = 1
        val code = 503
        val statusLine = parse("HTTP/1.$version $code ")
        assertThat(statusLine.message).isEqualTo("")
        assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1)
        assertThat(statusLine.code).isEqualTo(code)
      }
    
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

              .protocols(listOf(Protocol.HTTP_1_1))
              .build()
    
          val response =
            client.newCall(
              Request((mockServer.secureEndpoint + "/person?name=peter").toHttpUrl()),
            ).execute()
    
          assertThat(response.body.string()).contains("Peter the person")
          assertThat(response.protocol).isEqualTo(Protocol.HTTP_1_1)
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ResponseCommonTest.kt

        val response =
          Response.Builder()
            .request(
              Request.Builder()
                .url("https://example.com/")
                .build(),
            )
            .protocol(Protocol.HTTP_1_1)
            .code(200)
            .message("OK")
            .build()
        assertThat(response.body.contentType()).isNull()
        assertThat(response.body.contentLength()).isEqualTo(0L)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/StatusLine.kt

            }
            val httpMinorVersion = statusLine[7] - '0'
            codeStart = 9
            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".
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        }
      }
    
      @Disabled("Follow up with fix in https://github.com/square/okhttp/issues/6853")
      @Test
      fun serverDisconnectsBeforeSecondRequestHttp1() {
        enableProtocol(Protocol.HTTP_1_1)
    
        server.enqueue(MockResponse(code = 200, body = "Req1"))
        server.enqueue(MockResponse(code = 200, body = "Req2"))
    
        val eventListener =
          object : EventListener() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Connection.kt

       * HTTPS.
       */
      fun handshake(): Handshake?
    
      /**
       * Returns the protocol negotiated by this connection, or [Protocol.HTTP_1_1] if no protocol
       * has been negotiated. This method returns [Protocol.HTTP_1_1] even if the remote peer is using
       * [Protocol.HTTP_1_0].
       */
      fun protocol(): Protocol
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top