Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getSelectedProtocol (0.08 sec)

  1. okhttp/src/main/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. */
      @SuppressLint("NewApi")
      @IgnoreJRERequirement // This function is overridden to require API >= 24.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp/src/main/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
            }
          socket = sslSocket
          source = sslSocket.source().buffer()
          sink = sslSocket.sink().buffer()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              }
    
              sslSocket.startHandshake()
    
              if (protocolNegotiationEnabled) {
                val protocolString = Platform.get().getSelectedProtocol(sslSocket)
                protocol =
                  when {
                    protocolString != null -> Protocol.get(protocolString)
                    else -> Protocol.HTTP_1_1
                  }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
Back to top