Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getSelectedProtocol (0.35 sec)

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

          .find { it.matchesSocket(sslSocket) }
          ?.configureTlsExtensions(sslSocket, hostname, protocols)
      }
    
      override fun getSelectedProtocol(sslSocket: SSLSocket): String? =
        // No TLS extensions if the socket class is custom.
        socketAdapters.find { it.matchesSocket(sslSocket) }?.getSelectedProtocol(sslSocket)
    
      override fun getStackTraceForCloseable(closer: String): Any? =
        if (Build.VERSION.SDK_INT >= 30) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

        while (true) {
          var socket: Socket? = null
          try {
            socket = serverSocket.accept()
            val sslSocket = doSsl(socket)
            val protocolString = Platform.get().getSelectedProtocol(sslSocket)
            val protocol = if (protocolString != null) get(protocolString) else null
            if (protocol != Protocol.HTTP_2) {
              throw ProtocolException("Protocol $protocol unsupported")
            }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt

          }
    
          // Success! Save the handshake and the ALPN protocol.
          val maybeProtocol =
            if (connectionSpec.supportsTlsExtensions) {
              Platform.get().getSelectedProtocol(sslSocket)
            } else {
              null
            }
          javaNetSocket = sslSocket
          socket = sslSocket.asBufferedSocket()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

      open fun afterHandshake(sslSocket: SSLSocket) {
      }
    
      /** Returns the negotiated protocol, or null if no protocol was negotiated. */
      open fun getSelectedProtocol(sslSocket: SSLSocket): String? = null
    
      /** For MockWebServer. This returns the inbound SNI names. */
      @IgnoreJRERequirement // This function is overridden to require API >= 24.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              // Wait until after handshake to grab the buffered socket
              socket = MockWebServerSocket(sslSocket)
    
              if (protocolNegotiationEnabled) {
                val protocolString = Platform.get().getSelectedProtocol(sslSocket)
                protocol =
                  when {
                    protocolString != null -> Protocol.get(protocolString)
                    else -> Protocol.HTTP_1_1
                  }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 40.3K bytes
    - Viewed (0)
Back to top