Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for HTTP_2 (0.17 sec)

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

                sslSocketFactory(
                  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 =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

      @Volatile private var stream: Http2Stream? = null
    
      private val protocol: Protocol =
        if (Protocol.H2_PRIOR_KNOWLEDGE in client.protocols) {
          Protocol.H2_PRIOR_KNOWLEDGE
        } else {
          Protocol.HTTP_2
        }
    
      @Volatile
      private var canceled = false
    
      override fun createRequestBody(
        request: Request,
        contentLength: Long,
      ): Sink {
        return stream!!.getSink()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/DuplexTest.kt

              .build(),
          )
        assertFailsWith<ProtocolException> {
          call.execute()
        }
      }
    
      @Test
      fun trueDuplexClientWritesFirst() {
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockStreamHandler()
            .receiveRequest("request A\n")
            .sendResponse("response B\n")
            .receiveRequest("request C\n")
            .sendResponse("response D\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/JSSETest.kt

          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
    
        client.connectionPool.evictAll()
        assertEquals(0, client.connectionPool.connectionCount())
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

      fun getReturns500() {
        server.enqueue(MockResponse(code = 500))
        executeSynchronously("/")
          .assertCode(500)
          .assertNotSuccessful()
      }
    
      @Test
      fun get_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        get()
      }
    
      @Test
      fun get_HTTPS() {
        enableTls()
        get()
      }
    
      @Test
      fun repeatedHeaderNames() {
        server.enqueue(
          MockResponse(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  6. 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
    import org.junit.Assert.assertTrue
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

            .socketFactory(socketFactory)
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
      }
    
      @Test
      fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() {
        enableProtocol(Protocol.HTTP_2)
    
        val request = Request(server1.url("/"))
    
        server1.enqueue(refusedStream)
        server2.enqueue(bodyResponse)
    
        dns[server1.hostName] = listOf(ipv6, ipv4)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       *
       * Current versions of OkHttp do not support this protocol.
       */
      @Deprecated("OkHttp has dropped support for SPDY. Prefer {@link #HTTP_2}.")
      SPDY_3("spdy/3.1"),
    
      /**
       * The IETF's binary-framed protocol that includes header compression, multiplexing multiple
       * requests on the same socket, and server-push. HTTP/1.1 semantics are layered on HTTP/2.
    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)
  9. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

     */
    package okhttp3.internal.authenticator
    
    import java.net.Authenticator
    import java.net.InetAddress
    import junit.framework.TestCase.assertNull
    import okhttp3.FakeDns
    import okhttp3.Protocol.HTTP_2
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.TestValueFactory
    import okhttp3.internal.RecordingAuthenticator
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Assertions.assertEquals
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  10. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              .build()
    
          val response = client.newCall(request).execute()
    
          response.use {
            assertEquals(Protocol.HTTP_2, response.protocol)
            assertEquals(200, response.code)
            // see https://github.com/google/conscrypt/blob/b9463b2f74df42d85c73715a5f19e005dfb7b802/android/src/main/java/org/conscrypt/Platform.java#L613
            when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
Back to top