Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 223 for protocol (0.04 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt

        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
        protocol: Protocol?,
      ) {
        logWithTime("connectEnd: $protocol")
      }
    
      override fun connectFailed(
        call: Call,
        inetSocketAddress: InetSocketAddress,
        proxy: Proxy,
        protocol: Protocol?,
        ioe: IOException,
      ) {
        logWithTime("connectFailed: $protocol $ioe")
      }
    
      override fun connectionAcquired(
        call: Call,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt

          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
       * The protocols the client supports. This method always returns a non-null list that
       * contains minimally [Protocol.HTTP_1_1].
       */
      @get:JvmName("protocols")
      val protocols: List<Protocol> = protocols.toImmutableList()
    
      @get:JvmName("connectionSpecs")
      val connectionSpecs: List<ConnectionSpec> =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

          "ConnectionAcquired",
          "ConnectionReleased",
        )
      }
    
      @Test
      @Throws(IOException::class)
      fun secondCallEventSequence() {
        enableTls()
        server!!.protocols = listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)
        server!!.enqueue(MockResponse())
        server!!.enqueue(MockResponse())
    
        client
          .newCall(Request(server!!.url("/")))
          .execute()
          .close()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  4. 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 {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/JSSETest.kt

        client.newCall(request).execute().use {
          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)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

         *
         * @param protocols the protocols to use, in order of preference. If the list contains
         *     [Protocol.H2_PRIOR_KNOWLEDGE] then that must be the only protocol and HTTPS URLs will not
         *     be supported. Otherwise the list must contain [Protocol.HTTP_1_1]. The list must
         *     not contain null or [Protocol.HTTP_1_0].
         */
        fun protocols(protocols: List<Protocol>) =
          apply {
    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/src/jvmTest/kotlin/okhttp3/CallTest.kt

       */
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client
            .newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
        server.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client
            .newBuilder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  8. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

      private fun readResponse(
        hostname: String,
        response: Response,
      ): List<InetAddress> {
        if (response.cacheResponse == null && response.protocol !== Protocol.HTTP_2 && response.protocol !== Protocol.QUIC) {
          Platform.get().log("Incorrect protocol: ${response.protocol}", Platform.WARN)
        }
    
        response.use {
          if (!response.isSuccessful) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        val url: HttpUrl = mockWebServer.url("")
        mockWebServer.bodyLimit = 0L
        mockWebServer.protocolNegotiationEnabled = false
        mockWebServer.protocols = listOf()
        val protocols: List<Protocol> = mockWebServer.protocols
        mockWebServer.useHttps(SSLSocketFactory.getDefault() as SSLSocketFactory, false)
        mockWebServer.noClientAuth()
        mockWebServer.requestClientAuth()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/CorrettoTest.kt

          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
      @Disabled
      fun testGoogle() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://google.com/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top