Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getSelectedProtocol (0.95 sec)

  1. 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)
  2. 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